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:
parent
5933aa0937
commit
716e225da9
@ -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
1
test/fixtures/ruby/analysis/puts.rb
vendored
Normal file
@ -0,0 +1 @@
|
||||
puts "hello"
|
Loading…
Reference in New Issue
Block a user