Ignore:
Timestamp:
Nov 17, 2007, 9:34:36 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

SPrintf関数の実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TestCase/SimpleTestCase/SimpleTestCase.ab

    r355 r383  
    1111
    1212Function UnitTest( msg As String, isSuccessful As Boolean )
    13     Dim resultStr As String
     13    Dim resultStr = Nothing As String
    1414    If isSuccessful Then
    1515        resultStr = Ex"OK      "
     
    2929End Function
    3030
     31Function UnitTest( msg As String, test As String, expectation As String)
     32    If test = expectation Then
     33        Print Ex"OK      "; msg
     34    Else
     35        SetConsoleTextAttribute(hStdOut, BACKGROUND_RED Or BACKGROUND_GREEN Or BACKGROUND_INTENSITY)
     36        Print Ex"FAILURE!"; msg
     37        Print "  test string = '" + test + "'"
     38        SetConsoleTextAttribute(hStdOut, csbi.wAttributes)
     39    End If
     40End Function
     41
    3142Print "Please enter any key"
    3243Dim a As Long
Note: See TracChangeset for help on using the changeset viewer.