Allow construction variable expansion on _true_ and _false_ literals

This commit is contained in:
michael.metivier authored and Josh Holtrop committed 2018-11-02 00:57:20 -04:00
1 parent 97c24eec6b
commit c34821864e
2 files changed
+12 -2

No files matched your search

+6
View File
@@ -159,6 +159,12 @@ module Rscons
it "calls a lambda with the given lambda arguments" do
expect(v.expand_varref("${lambda}", [v: "fez"])).to eq("fez--12")
end
it "returns true when passed true" do
expect(v.expand_varref(true, :lambda_args)).to eq(true)
end
it "returns false when passed false" do
expect(v.expand_varref(false, :lambda_args)).to eq(false)
end
it "raises an error when given an invalid argument" do
expect { v.expand_varref({a: :b}, :lambda_args) }.to raise_error /Unknown varref type: Hash/
end