$ command line ruby cheat sheets
Cheat Sheet Title: [ no_spaces_alphanumeric_only ]
Cheat Sheet://// 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 )
Your cheat sheet will be editable (fixable) by anyone. Each cheat sheet is essentially a wiki page. It may also be used by millions of people for reference purposes from the comfort of their command line. If this is okay with you, please save.
Advertisement