mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Fixed a couple of broken unit tests
This commit is contained in:
parent
8ce3099d93
commit
710aec4503
2 changed files with 3 additions and 4 deletions
|
|
@ -579,7 +579,7 @@ public:
|
|||
case 1: return r.nextInt();
|
||||
case 2: return r.nextInt64();
|
||||
case 3: return r.nextBool();
|
||||
case 4: return r.nextDouble();
|
||||
case 4: return String (r.nextDouble(), 20).getDoubleValue();
|
||||
case 5: return createRandomWideCharString (r);
|
||||
|
||||
case 6:
|
||||
|
|
|
|||
|
|
@ -2522,14 +2522,13 @@ public:
|
|||
beginTest ("var");
|
||||
|
||||
var v1 = 0;
|
||||
var v2 = 0.1;
|
||||
var v3 = "0.1";
|
||||
var v2 = 0.16;
|
||||
var v3 = "0.16";
|
||||
var v4 = (int64) 0;
|
||||
var v5 = 0.0;
|
||||
expect (! v2.equals (v1));
|
||||
expect (! v1.equals (v2));
|
||||
expect (v2.equals (v3));
|
||||
expect (v3.equals (v2));
|
||||
expect (! v3.equals (v1));
|
||||
expect (! v1.equals (v3));
|
||||
expect (v1.equals (v4));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue