Skip to content

Commit 03ffbbf

Browse files
committed
remove define.
1 parent 46f6570 commit 03ffbbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

com.unity.ml-agents/Tests/Runtime/RuntimeAPITest.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if UNITY_INCLUDE_TESTS
21
using System.Collections;
32
using System.Collections.Generic;
43
using Unity.MLAgents;
@@ -72,7 +71,7 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
7271
behaviorParams.BrainParameters.VectorObservationSize = 3;
7372
behaviorParams.BrainParameters.NumStackedVectorObservations = 2;
7473
behaviorParams.BrainParameters.VectorActionDescriptions = new[] { "Continuous1", "TestActionA", "TestActionB" };
75-
behaviorParams.BrainParameters.ActionSpec = new ActionSpec(1, new []{2, 2});
74+
behaviorParams.BrainParameters.ActionSpec = new ActionSpec(1, new[] { 2, 2 });
7675
behaviorParams.BehaviorName = "TestBehavior";
7776
behaviorParams.TeamId = 42;
7877
behaviorParams.UseChildSensors = true;
@@ -127,7 +126,7 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
127126

128127
var actions = agent.GetStoredActionBuffers().DiscreteActions;
129128
// default Heuristic implementation should return zero actions.
130-
Assert.AreEqual(new ActionSegment<int>(new[] {0, 0}), actions);
129+
Assert.AreEqual(new ActionSegment<int>(new[] { 0, 0 }), actions);
131130
Assert.AreEqual(1, agent.numHeuristicCalls);
132131

133132
Academy.Instance.EnvironmentStep();
@@ -138,4 +137,3 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
138137
}
139138
}
140139
}
141-
#endif

0 commit comments

Comments
 (0)