-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile Tests only for DIAG_DEVELOPER
- Loading branch information
Showing
12 changed files
with
73 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifdef DIAG_DEVELOPER | ||
|
||
class TestUnit_SColor : STestUnit { | ||
|
||
} | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
scripts/3_Game/sUDE/util/testing/units/TestUnit_SFileHelper.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifdef DIAG_DEVELOPER | ||
|
||
class TestUnit_SFileHelper : STestUnit { | ||
|
||
} | ||
|
||
|
||
#endif |
8 changes: 8 additions & 0 deletions
8
scripts/3_Game/sUDE/util/testing/units/TestUnit_SFlagOperator.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifdef DIAG_DEVELOPER | ||
|
||
class TestUnit_SFlagOperator : STestUnit { | ||
|
||
} | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 6 additions & 49 deletions
55
scripts/3_Game/sUDE/util/testing/units/TestUnit_SUserConfig.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,9 @@ | ||
#ifdef DIAG_DEVELOPER | ||
|
||
class TestUnit_SUserConfig : STestUnit { | ||
|
||
override void init() { | ||
|
||
} | ||
|
||
/* | ||
private void testConstraints() { | ||
auto f_constraint = new SConstraintPrimitiveMinMaxNumeric<float>(0, 1); | ||
assertEqual(false, f_constraint.isEnabled()); | ||
auto f_option = new SUserConfigOption<float>(0.69, f_constraint); | ||
assertEqual(true, f_option.hasConstraint()); | ||
assertEqual(false, f_option.isConstrained()); | ||
f_option.removeConstraint(); | ||
assertEqual(false, f_option.hasConstraint()); | ||
assertEqual(false, f_option.isConstrained()); | ||
f_option.setConstraint(f_constraint); | ||
assertEqual(true, f_option.hasConstraint()); | ||
assertEqual(false, f_option.isConstrained()); | ||
} | ||
private void testOptionsValuesWithConstraints() { | ||
auto f_constraint = new SConstraintPrimitiveMinMaxNumeric<float>(0, 1); | ||
auto f_option = new SUserConfigOption<float>(0.69, f_constraint); | ||
assertEqual(0.69, f_option.get()); | ||
} | ||
|
||
f_option.set(2.0); | ||
assertEqual(2.0, f_option.get()); | ||
f_option.enableConstraint(); | ||
assertEqual(1.0, f_option.get()); | ||
f_constraint.disable(); | ||
f_option.set(-2.0); | ||
assertEqual(-2.0, f_option.get()); | ||
f_constraint.enable(); | ||
assertEqual(-2.0, f_option.get()); | ||
f_option.updateConstraint(); | ||
assertEqual(0.0, f_option.get()); | ||
} | ||
*/ | ||
|
||
} | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters