fork download
  1. public class Addtest
  2.  
  3. {
  4.  
  5. static testmethod void testadd()
  6.  
  7. {
  8.  
  9. public integer a;
  10.  
  11. public integer b;
  12.  
  13. public integer c;
  14.  
  15. Add ad=new Add();
  16.  
  17. ad.a = 10;
  18.  
  19. ad.b = 20;
  20.  
  21. integer res=ad.addt();
  22.  
  23. system.assertEquals(30,res);
  24.  
  25. }
  26.  
  27. }
Success #stdin #stdout #stderr 0.02s 8928KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #Addtest
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #Addtest (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:5: parse error, expected '}'