forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58a588c
commit edb4af8
Showing
6 changed files
with
44 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
#define MODPACK_CHAT_BADGES | ||
|
||
#define SEC_LEVEL_GREEN 0 | ||
#define SEC_LEVEL_BLUE 1 | ||
#define SEC_LEVEL_VIOLET 2 | ||
#define SEC_LEVEL_ORANGE 3 | ||
#define SEC_LEVEL_RED 4 | ||
#define SEC_LEVEL_GAMMA 5 | ||
#define SEC_LEVEL_EPSILON 6 | ||
#define SEC_LEVEL_DELTA 7 | ||
|
||
// TODO: someday preferences will use TGUI and you will probably be able to move it to modular_ss220\_defines220\code\preferences_defines.dm | ||
/// Interacts with the toggles220 bitflag | ||
#define PREFTOGGLE_TOGGLE220 220 |
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,4 @@ | ||
/datum/modpack/unit_tests | ||
name = "Тестирование" | ||
desc = "Здесь тестируется все, что стоит протестировать" | ||
author = "Maxiemar" |
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,3 @@ | ||
#include "_unit_tests.dm" | ||
|
||
#include "code/security_levels.dm" |
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,19 @@ | ||
/datum/unit_test/security_levels | ||
|
||
/datum/unit_test/security_levels/Run() | ||
security_levels_order() | ||
|
||
/datum/unit_test/security_levels/proc/security_levels_order() | ||
var/list/expected = list( | ||
new /datum/security_level/green, | ||
new /datum/security_level/blue, | ||
new /datum/security_level/violet, | ||
new /datum/security_level/orange, | ||
new /datum/security_level/red, | ||
new /datum/security_level/gamma, | ||
new /datum/security_level/epsilon, | ||
new /datum/security_level/delta | ||
) | ||
var/list/actual = SSsecurity_level.available_levels | ||
if(!compare_list(expected, actual)) | ||
Fail("Security levels order is invalid.\nExpected: [expected]\nActual: [actual]") |