/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/fast_number.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-09-15 19:31:32 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210915193132-hdfh2x8bj6y6q1nn
* Fixed documentation about FastNumber.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
      Test.message ("Expected value: 5, got:" + f1.decimal.to_string ());
64
64
    }
65
65
    
 
66
    f1 = FastNumber (10, 5);
 
67
    if (f1.raw_number != 10500) {
 
68
      Test.fail ();
 
69
      Test.message ("Sanity4: Wrong value.");
 
70
      Test.message ("expected: 10500, got: " + f1.raw_number.to_string ());
 
71
    }
 
72
    
 
73
    if (f1.decimal != 5) {
 
74
      Test.fail ();
 
75
      Test.message ("Sanity4 - Decimal: Wrong value.");
 
76
      Test.message ("Expected value: 5, got:" + f1.decimal.to_string ());
 
77
    }
66
78
    
67
79
  });
68
80