23 %initTestcase(i_object=nobs.sas, i_desc=simple example with sashelp.class)
24 %let nobs=%nobs(sashelp.class);
26 %assertEquals(i_actual=&nobs, i_expected=19, i_desc=number of observations in sashelp.class)
30 %initTestcase(i_object=nobs.sas, i_desc=failed test - must be red!)
31 %let nobs=%nobs(sashelp.class);
33 %assertEquals(i_actual=&nobs, i_expected=20, i_desc=number of observations in dataset sashelp.class - must be red!)
37 %initTestcase(i_object=nobs.sas, i_desc=%str(example with big dataset))
46 %assertEquals(i_actual=&nobs, i_expected=1000000, i_desc=number of observations in dataset work.big)
50 %initTestcase(i_object=nobs.sas, i_desc=%str(example with empty dataset))
54 %let nobs=%nobs(empty);
56 %assertEquals(i_actual=&nobs, i_expected=0, i_desc=number of observations in dataset work.empty)
60 %initTestcase(i_object=nobs.sas, i_desc=%str(dataset not specified))
63 %assertEquals(i_actual=&nobs, i_expected=, i_desc=number of observations when dataset is not specified)
67 %initTestcase(i_object=nobs.sas, i_desc=%str(invalid dataset))
70 %assertEquals(i_actual=&nobs, i_expected=, i_desc=number of observations with invalid dataset)