artichoke-backend/vendor/mruby/test/assert.rb
##
# Report the test result and print all assertions
# which were reported broken.
Report the test result and print all assertions
which were reported broken.
Report the test result and print all assertions which were reported broken .
def report
  t_print("\n")
  $asserts.each do |msg|
    t_print("#{msg}\n")
  end
  $total_test = $ok_test + $ko_test + $kill_test + $warning_test + $skip_test
  t_print("  Total: #{$total_test}\n")
  t_print("     OK: #{$ok_test}\n")
  t_print("     KO: #{$ko_test}\n")
  t_print("  Crash: #{$kill_test}\n")
  t_print("Warning: #{$warning_test}\n")
  t_print("   Skip: #{$skip_test}\n")
  if Object.const_defined?(:Time)
    t_time = Time.now - $test_start
    t_print("   Time: #{t_time.round(2)} seconds\n")
  end
  $ko_test == 0 && $kill_test == 0
end
def report t_print ( "\n" ) $asserts . each do | msg | t_print ( "#{msg}\n" ) end $total_test = $ok_test + $ko_test + $kill_test + $warning_test + $skip_test t_print ( "  Total: #{$total_test}\n" ) t_print ( "     OK: #{$ok_test}\n" ) t_print ( "     KO: #{$ko_test}\n" ) t_print ( "  Crash: #{$kill_test}\n" ) t_print ( "Warning: #{$warning_test}\n" ) t_print ( "   Skip: #{$skip_test}\n" ) if Object . const_defined? ( :Time ) t_time = Time . now - $test_start t_print ( "   Time: #{t_time.round(2)} seconds\n" ) end $ko_test == 0 && $kill_test == 0 end
Report the test result and print all assertions
which were reported broken.
Report the test result and print all assertions which were reported broken .