test/unit/library_function_test.rb in hqmf2js-1.2.0 vs test/unit/library_function_test.rb in hqmf2js-1.2.1

- old
+ new

@@ -176,9 +176,17 @@ ts1 = 'new TS("201202292310")' ts2 = 'new TS("201203010020")' assert_equal 70, @context.eval("#{ts1}.difference(#{ts2},'min')") + ts1 = 'new TS("20120101101010")' + ts2 = 'new TS("20120101101030")' + assert_equal 0, @context.eval("#{ts1}.difference(#{ts2},'min')") + + ts1 = 'new TS("20120101100950")' + ts2 = 'new TS("20120101101010")' + assert_equal 1, @context.eval("#{ts1}.difference(#{ts2},'min')") + # Additional tests from previous version of TJC guidance ts4 = 'new TS("20000310")' ts5 = 'new TS("20110405")' ts6 = 'new TS("20000229")' ts7 = 'new TS("20110228")' \ No newline at end of file