/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to tests/value-token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-05-30 18:46:35 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220530184635-d8k8pofyyifu017d
Woops.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
  
68
68
  GLib.Test.add_func ("/VQDR/Expression/Token/Value/Constant", () => {
69
69
    try {
70
 
      int64 in_val = 12;
 
70
      long in_val = 12;
71
71
      
72
72
      var ctx = new Context ();
73
73
      
77
77
      
78
78
      root_t.evaluate (ctx);
79
79
      
80
 
      int64 out_val = root_t.result_value.number;
 
80
      long out_val = root_t.result_value.number;
81
81
      
82
82
      if (out_val != in_val) {
83
 
        GLib.Test.message (@"The values do not match: Expected $(in_val), " +
84
 
                           " got $(out_val).\n");
 
83
        GLib.Test.message ("The values do not match: Expected %li, got %li.\n",
 
84
                           in_val, out_val);
85
85
        GLib.Test.fail ();
86
86
      }
87
87
    } catch (GLib.Error? e) {
88
 
       GLib.Test.message (@"An error occured: domain: $(e.domain)," +
89
 
                          " message: $(e.message)");
 
88
       GLib.Test.message ("An error occured: domain: %s, message: %s", e.domain.to_string (), e.message);
90
89
       GLib.Test.fail ();
91
90
    }
92
91
  });
104
103
        
105
104
        root_t.evaluate (ctx);
106
105
        
107
 
        int64 out_val = root_t.result_value.number;
 
106
        long out_val = root_t.result_value.number;
108
107
        
109
108
        if (out_val != i) {
110
109
          GLib.Test.message ("The values do not match");