/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-06-01 12:30:01 UTC
  • mfrom: (52.1.3 int64)
  • Revision ID: gustav.hartvigsson@gmail.com-20220601123001-b5xs60wwym810hg1
Merged: lp:~gustav.hartvigsson/vqdr/int64

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
 
      long in_val = 12;
 
70
      int64 in_val = 12;
71
71
      
72
72
      var ctx = new Context ();
73
73
      
77
77
      
78
78
      root_t.evaluate (ctx);
79
79
      
80
 
      long out_val = root_t.result_value.number;
 
80
      int64 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 %li, got %li.\n",
84
 
                           in_val, out_val);
 
83
        GLib.Test.message (@"The values do not match: Expected $(in_val), got $(out_val).\n");
85
84
        GLib.Test.fail ();
86
85
      }
87
86
    } catch (GLib.Error? e) {
88
 
       GLib.Test.message ("An error occured: domain: %s, message: %s", e.domain.to_string (), e.message);
 
87
       GLib.Test.message (@"An error occured: domain: $(e.domain), message: $(e.message)");
89
88
       GLib.Test.fail ();
90
89
    }
91
90
  });
103
102
        
104
103
        root_t.evaluate (ctx);
105
104
        
106
 
        long out_val = root_t.result_value.number;
 
105
        int64 out_val = root_t.result_value.number;
107
106
        
108
107
        if (out_val != i) {
109
108
          GLib.Test.message ("The values do not match");