/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: 2021-09-09 12:57:20 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210909125720-x6t14nri2anelxp6
Added Round Up and Round Down function classes.
Added ronud up and round down operations to FastNumbers to facitilate this.

TODO: Write tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
      
63
63
      root_t.evaluate (ctx);
64
64
      
65
 
      long out_val = root_t.result_value;
 
65
      long out_val = root_t.result_value.number;
66
66
      
67
67
      if (out_val != in_val) {
68
 
        GLib.Test.message ("The values do not match");
 
68
        GLib.Test.message ("The values do not match: Expected %li, got %li.\n",
 
69
                           in_val, out_val);
69
70
        GLib.Test.fail ();
70
71
      }
71
72
    } catch (GLib.Error? e) {
87
88
        
88
89
        root_t.evaluate (ctx);
89
90
        
90
 
        long out_val = root_t.result_value;
 
91
        long out_val = root_t.result_value.number;
91
92
        
92
93
        if (out_val != i) {
93
94
          GLib.Test.message ("The values do not match");