Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 31 lines (21 sloc) 0.943 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
---
asunit: |-
  //// AsUnit Assertions ////
  
  // Asserts that a condition is true
  assertTrue( message:String, condition:Boolean )
  
  // Asserts that a condition is false
  assertFalse( message:String, condition:Boolean )
  
  // Asserts that two objects are equal
  assertEquals( message:String, value1:*, value2:* )
  
  // Asserts that two numerical values are equal within a tolerance range
  assertEqualsFloat( message:String, value1:*, value2:*, tolerance:* )
  
  // Asserts that an object is null
  assertNull( message:String, object:* )
  
  // Asserts that an object isn't null
  assertNotNull( message:String, object:* )
  
  // Asserts that two objects refer to the same object
  assertSame( message:String, object1:*, object2:* )
  
  // Asserts that two objects do not refer to the same object
    assertNotSame( message:String, object1:*, object2:* )
  
  // Fails a test with the given message
  fail( message:String )
Something went wrong with that request. Please try again.