Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added failing test for exception expectation.

Added printout on failure.
  • Loading branch information...
commit 46d71b7112abb05becfdfaf0985f29921e57ce77 1 parent 2bf5772
@Gianfrancoalongi authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  UT.dyalog
  2. +3 −0  UT_tests.dyalog
View
1  UT.dyalog
@@ -24,6 +24,7 @@ DM ← ⍬
:If EN
Z 1
:If EN ⎕EN
+ Function display_expected_got EN ⎕EN
Z 0
:EndIf
EN
View
3  UT_tests.dyalog
@@ -42,6 +42,8 @@ single_line_syntax_error_TEST ← { 1 #.UT.eq ⍳ }
single_line_exception_2_TEST { #.UT.EN 2 }
+single_line_exception_2_failing_TEST { #.UT.EN 3 }
+
Z Tests
Z
Z , 1 #.UT.run 'single_line_TEST'
@@ -56,6 +58,7 @@ single_line_exception_2_TEST ← { #.UT.EN ← 2 ⋄ ⍳ }
Z , 2 #.UT.run 'single_line_syntax_error_TEST'
Z , 3 #.UT.run 'multi_line_index_error_TEST'
Z , 1 #.UT.run 'single_line_exception_2_TEST'
+ Z , 0 #.UT.run 'single_line_exception_2_failing_TEST'
:EndNameSpace
Please sign in to comment.
Something went wrong with that request. Please try again.