' Gambas test file Public Sub NoMessage() 'There is no message Test.Plan(1) Assert.Ok(True) End Public Sub NoMessageInbetween() Test.Plan(4) Assert.Ok(True, "TestNoMessageInbetween Assert 1 description defined") Assert.Ok(True) Assert.Ok(True, "Assert 3 description defined") Assert.Ok(True) End Public Sub Note() Test.Note("This\nis\na\nnote") Test.Plan(0) Test.Note("The next note is Null and that's alright:") Test.Note(Null) Test.SkipAll("This doesn't actually assert anything") End Public Sub TestNoteGotAndExpected() 'tests the typo of Expected and Got in diagnosis 'This test must fail to see what happens Dim Expected, Got As String Test.Plan(1) Got = "
    " & gb.Lf & "
  1. Zum 15.12. in die Wintermischung 2
  2. " & gb.Lf & "
  3. Zum 15.2. in die Fellwechselmischung Frühjahr
  4. " & gb.Lf & "
  5. Zum 15.4. in die Sommermischung
  6. " & gb.Lf & "
  7. Zum 15.8. in die Fellwechselmischung Herbst
  8. " & gb.Lf & "
  9. Zum 15.10. in die Wintermischung 1
  10. " & gb.Lf & "
" Expected = "
    " & gb.Lf & Trim("
  1. Zum 15.12. in die Wintermischung 2
  2. ") & gb.Lf & Trim("
  3. Zum 15.2. in die Fellwechselmischung Frühjahr
  4. ") & gb.Lf & Trim("
  5. Zum 15.4. in die Sommermischung
  6. ") & gb.Lf & Trim("
  7. Zum 15.8. in die Fellwechselmischung Herbst
  8. ") & gb.Lf & Trim("
  9. Zum 15.10. in die Wintermischung 1
  10. ") & gb.Lf & "
" Assert.Equals(Got, Expected, "tests the typo of Expected and Got in diagnosis") End