Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5382

Show
Ignore:
Timestamp:
08/28/08 13:24:47 (3 months ago)
Author:
vanand
Message:

openmrs-logic-api-refactoring: test the doubles

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/logic-api-refactoring/test/api/org/openmrs/test/logic/LogicQueryParserTest.java

    r5314 r5382  
    5454                LogicCriteria lc = null; 
    5555                 
    56                 lc = Context.getLogicService().parseString("EXISTS \"CD4 COUNT\" > 200;"); 
    57                 System.out.println("\nInput: EXISTS \"CD4 COUNT\" > 200;\nOutput: " + lc.toString()); 
    58                 lc = Context.getLogicService().parseString("\"CD4 COUNT\";"); 
    59                 System.out.println("\nInput: \"CD4 COUNT\";\nOutput:" + lc.toString()); 
    60                 lc = Context.getLogicService().parseString("LAST \"CD4 COUNT\" > 200;"); 
    61                 System.out.println("\nInput: LAST \"CD4 COUNT\" > 200;\nOutput: " + lc.toString()); 
     56                lc = Context.getLogicService().parseString("EXISTS \"CD4 COUNT\" > 200"); 
     57                System.out.println("\nInput: EXISTS \"CD4 COUNT\" > 200\nOutput: " + lc.toString()); 
     58                lc = Context.getLogicService().parseString("\"CD4COUNT\""); 
     59                System.out.println("\nInput: \"CD4COUNT\"\nOutput:" + lc.toString()); 
     60                lc = Context.getLogicService().parseString("LAST \"CD4 COUNT\" > 200.534;"); 
     61                System.out.println("\nInput: LAST \"CD4 COUNT\" > 200.534;\nOutput: " + lc.toString()); 
    6262                lc = Context.getLogicService().parseString("FIRST \"CD4 COUNT\" < 200;"); 
    6363                System.out.println("\nInput: FIRST \"CD4 COUNT\" < 200;\nOutput: " + lc.toString()); 
     
    6666                lc = Context.getLogicService().parseString("FIRST \"CD4 COUNT\" AFTER 2007-06-14;"); 
    6767                System.out.println("\nInput: FIRST \"CD4 COUNT\" AFTER 2007-06-14;\nOutput: " + lc.toString()); 
     68                lc = Context.getLogicService().parseString("FIRST \"CD4 COUNT\" < 123.33 AFTER 2007-06-14;"); 
     69                System.out.println("\nInput: FIRST \"CD4 COUNT\" < 123.33 AFTER 2007-06-14;\nOutput: " + lc.toString()); 
    6870                 
    6971