Skip to content

Commit 558a8b1

Browse files
committed
Fix compile errors in tests
1 parent 7b45449 commit 558a8b1

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

tests/SilkTouch/SilkTouch/Khronos/MixKhronosDataTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ public void OverzealousNameTrimmingFixupIsNotOverzealousForOpenAL()
379379
};
380380
var names = new Dictionary<string, CandidateNames>
381381
{
382-
{ "AL_VOCAL_MORPHER_PHONEME_A", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_A", null) },
383-
{ "AL_VOCAL_MORPHER_PHONEME_E", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_E", null) },
384-
{ "AL_VOCAL_MORPHER_PHONEME_I", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_I", null) },
382+
{ "AL_VOCAL_MORPHER_PHONEME_A", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_A", []) },
383+
{ "AL_VOCAL_MORPHER_PHONEME_E", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_E", []) },
384+
{ "AL_VOCAL_MORPHER_PHONEME_I", new CandidateNames("AL_VOCAL_MORPHER_PHONEME_I", []) },
385385
};
386386
var ctx = new NameTrimmerContext
387387
{

tests/SilkTouch/SilkTouch/Naming/NameTests.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public void SimpleGlfwTestDetermination(string? hint)
1414
{
1515
var test = new Dictionary<string, CandidateNames>
1616
{
17-
{ "GLFWallocator", new CandidateNames("GLFWallocator", null) },
18-
{ "GLFWgammaramp", new CandidateNames("GLFWgammaramp", null) },
19-
{ "GLFWgamepadstate", new CandidateNames("GLFWgamepadstate", null) },
20-
{ "GLFWvidmode", new CandidateNames("GLFWvidmode", null) },
21-
{ "GLFWimage", new CandidateNames("GLFWimage", null) },
22-
{ "Glfw", new CandidateNames("Glfw", null) },
23-
{ "GLFWcursor", new CandidateNames("GLFWcursor", null) },
24-
{ "GLFWmonitor", new CandidateNames("GLFWmonitor", null) },
25-
{ "GLFWwindow", new CandidateNames("GLFWwindow", null) },
17+
{ "GLFWallocator", new CandidateNames("GLFWallocator", []) },
18+
{ "GLFWgammaramp", new CandidateNames("GLFWgammaramp", []) },
19+
{ "GLFWgamepadstate", new CandidateNames("GLFWgamepadstate", []) },
20+
{ "GLFWvidmode", new CandidateNames("GLFWvidmode", []) },
21+
{ "GLFWimage", new CandidateNames("GLFWimage", []) },
22+
{ "Glfw", new CandidateNames("Glfw", []) },
23+
{ "GLFWcursor", new CandidateNames("GLFWcursor", []) },
24+
{ "GLFWmonitor", new CandidateNames("GLFWmonitor", []) },
25+
{ "GLFWwindow", new CandidateNames("GLFWwindow", []) },
2626
};
2727
Assert.That(
2828
GetPrefix(null, hint, test, null, null, false, true)?.Prefix,
@@ -62,10 +62,10 @@ public void RegressionFragmentShaderColorModMaskATI()
6262
{
6363
var test = new Dictionary<string, CandidateNames>
6464
{
65-
{ "GL_2X_BIT_ATI", new CandidateNames("GL_2X_BIT_ATI", null) },
66-
{ "GL_COMP_BIT_ATI", new CandidateNames("GL_COMP_BIT_ATI", null) },
67-
{ "GL_NEGATE_BIT_ATI", new CandidateNames("GL_NEGATE_BIT_ATI", null) },
68-
{ "GL_BIAS_BIT_ATI", new CandidateNames("GL_BIAS_BIT_ATI", null) },
65+
{ "GL_2X_BIT_ATI", new CandidateNames("GL_2X_BIT_ATI", []) },
66+
{ "GL_COMP_BIT_ATI", new CandidateNames("GL_COMP_BIT_ATI", []) },
67+
{ "GL_NEGATE_BIT_ATI", new CandidateNames("GL_NEGATE_BIT_ATI", []) },
68+
{ "GL_BIAS_BIT_ATI", new CandidateNames("GL_BIAS_BIT_ATI", []) },
6969
};
7070
Trim(
7171
new NameTrimmerContext
@@ -94,8 +94,8 @@ public void RegressionEvalTargetNV()
9494
{
9595
var test = new Dictionary<string, CandidateNames>
9696
{
97-
{ "GL_EVAL_2D_NV", new CandidateNames("GL_EVAL_2D_NV", null) },
98-
{ "GL_EVAL_TRIANGULAR_2D_NV", new CandidateNames("GL_EVAL_TRIANGULAR_2D_NV", null) },
97+
{ "GL_EVAL_2D_NV", new CandidateNames("GL_EVAL_2D_NV", []) },
98+
{ "GL_EVAL_TRIANGULAR_2D_NV", new CandidateNames("GL_EVAL_TRIANGULAR_2D_NV", []) },
9999
};
100100
Trim(
101101
new NameTrimmerContext
@@ -129,7 +129,7 @@ public void RegressionSingleMemberEnumUsesGlobalPrefixHint()
129129
{
130130
var names = new Dictionary<string, CandidateNames>
131131
{
132-
{ "GL_FILL_NV", new CandidateNames("GL_FILL_NV", null) },
132+
{ "GL_FILL_NV", new CandidateNames("GL_FILL_NV", []) },
133133
};
134134
var ctx = new NameTrimmerContext
135135
{
@@ -148,7 +148,7 @@ public void MultipleGlobalPrefixHints()
148148
{
149149
var names = new Dictionary<string, CandidateNames>
150150
{
151-
{ "ALC_CONTEXT_DEBUG_BIT_EXT", new CandidateNames("ALC_CONTEXT_DEBUG_BIT_EXT", null) },
151+
{ "ALC_CONTEXT_DEBUG_BIT_EXT", new CandidateNames("ALC_CONTEXT_DEBUG_BIT_EXT", []) },
152152
};
153153
var ctx = new NameTrimmerContext
154154
{

0 commit comments

Comments
 (0)