1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Test that puts ends up in the traces.

This commit is contained in:
Rob Rix 2018-05-10 11:03:42 -04:00
parent 5933aa0937
commit 716e225da9
2 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,11 @@ spec = parallel $ do
((res, _), _) <- evaluate "line.rb"
res `shouldBe` Right [injValue (Value.Integer (Number.Integer 4))]
it "resolves builtins used in the prelude" $ do
((res, _), traces) <- evaluate "puts.rb"
res `shouldBe` Right [injValue Unit]
traces `shouldContain` [ "\"hello\"" ]
where
ns n = Just . Latest . Just . injValue . Namespace n
addr = Address . Precise

1
test/fixtures/ruby/analysis/puts.rb vendored Normal file
View File

@ -0,0 +1 @@
puts "hello"