1
- #if UNITY_INCLUDE_TESTS
2
1
using System . Collections ;
3
2
using System . Collections . Generic ;
4
3
using Unity . MLAgents ;
@@ -72,7 +71,7 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
72
71
behaviorParams . BrainParameters . VectorObservationSize = 3 ;
73
72
behaviorParams . BrainParameters . NumStackedVectorObservations = 2 ;
74
73
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 } ) ;
76
75
behaviorParams . BehaviorName = "TestBehavior" ;
77
76
behaviorParams . TeamId = 42 ;
78
77
behaviorParams . UseChildSensors = true ;
@@ -127,7 +126,7 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
127
126
128
127
var actions = agent . GetStoredActionBuffers ( ) . DiscreteActions ;
129
128
// 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 ) ;
131
130
Assert . AreEqual ( 1 , agent . numHeuristicCalls ) ;
132
131
133
132
Academy . Instance . EnvironmentStep ( ) ;
@@ -138,4 +137,3 @@ public IEnumerator RuntimeApiTestWithEnumeratorPasses()
138
137
}
139
138
}
140
139
}
141
- #endif
0 commit comments