From 6bcc433af31331e9b3023464427a2470160584f4 Mon Sep 17 00:00:00 2001 From: Nick Rolfe Date: Thu, 18 Mar 2021 19:02:32 +0000 Subject: [PATCH] Uncomment empty class and module in CFG test --- ql/test/library-tests/controlflow/graph/Cfg.expected | 8 +++++++- ql/test/library-tests/controlflow/graph/cfg.rb | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ql/test/library-tests/controlflow/graph/Cfg.expected b/ql/test/library-tests/controlflow/graph/Cfg.expected index b691caa8394..7140bb4c6be 100644 --- a/ql/test/library-tests/controlflow/graph/Cfg.expected +++ b/ql/test/library-tests/controlflow/graph/Cfg.expected @@ -1337,7 +1337,7 @@ cfg.rb: #-----| -> #{...} # 130| ... = ... -#-----| -> ... rescue ... +#-----| -> EmptyClass # 130| Constant #-----| -> ... = ... @@ -1345,6 +1345,12 @@ cfg.rb: # 130| 5 #-----| -> Constant +# 133| EmptyClass +#-----| -> EmptyModule + +# 134| EmptyModule +#-----| -> ... rescue ... + # 136| ... rescue ... #-----| -> 1 diff --git a/ql/test/library-tests/controlflow/graph/cfg.rb b/ql/test/library-tests/controlflow/graph/cfg.rb index 65f6a927b10..aa43ec6c9ae 100644 --- a/ql/test/library-tests/controlflow/graph/cfg.rb +++ b/ql/test/library-tests/controlflow/graph/cfg.rb @@ -130,8 +130,8 @@ module M Constant = 5 end -#class EmptyClass; end -#module EmptyModule; end +class EmptyClass; end +module EmptyModule; end 1/0 rescue puts "div by zero"