~paul-lucas/zorba/bug-932374

« back to all changes in this revision

Viewing changes to doc/java/examples/Test_Zorba.java

  • Committer: Paul J. Lucas
  • Date: 2012-09-21 20:26:47 UTC
  • mfrom: (10819.2.235 zorba)
  • Revision ID: paul@lucasmail.org-20120921202647-fy9n4jduhrnljrnb
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
  static boolean example_3 ( Zorba aZorba )
62
62
  {
63
 
 
 
63
    
64
64
    XQuery lQuery = aZorba.compileQuery("1 div 0"); 
65
65
    try 
66
66
    {
135
135
      System.exit ( 1 ); 
136
136
  
137
137
    System.out.println ( "executing example 3" );
 
138
    System.out.println ( "expecting [err:FOAR0001]" );
138
139
    res = example_3 ( zorba );
139
140
    if (!res) 
140
141
      System.exit ( 1 ); 
141
142
  
142
143
    System.out.println ( "executing example 4" );
 
144
    System.out.println ( "expecting [err:XPST0003]" );
143
145
    res = example_4 ( zorba );
144
146
    if (!res) 
145
147
      System.exit ( 1 );