File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ use wasm_bindgen_test::*;
8
8
9
9
wasm_bindgen_test_configure ! ( run_in_browser) ;
10
10
11
- fn epsilon ( ) -> f64 {
12
- 0.34
13
- }
14
-
11
+ #[ test]
15
12
#[ wasm_bindgen_test]
16
13
fn processor_from_queue_response_time_is_correct ( ) {
17
14
let models = r#"
@@ -215,11 +212,11 @@ fn processor_from_queue_response_time_is_correct() {
215
212
. sum :: < f64 > ( )
216
213
/ 50.0 ;
217
214
let expectation = 1.0 / 3.0 ; // Exponential with lambda=3.0
218
- assert ! (
219
- ( average_batch_completion_time - 2.0 * expectation) . abs( ) / ( 2.0 * expectation) < epsilon( )
220
- ) ;
215
+ // Epsilon of 0.34
216
+ assert ! ( ( average_batch_completion_time - 2.0 * expectation) . abs( ) / ( 2.0 * expectation) < 0.34 ) ;
221
217
}
222
218
219
+ #[ test]
223
220
#[ wasm_bindgen_test]
224
221
fn processor_network_no_job_loss ( ) {
225
222
let models = r#"
@@ -419,6 +416,7 @@ fn processor_network_no_job_loss() {
419
416
assert_eq ! ( storage_arrivals_count, expected) ;
420
417
}
421
418
419
+ #[ test]
422
420
#[ wasm_bindgen_test]
423
421
fn simulation_serialization_deserialization_field_ordering ( ) {
424
422
// Confirm field order does not matter for yaml deserialization
@@ -464,6 +462,7 @@ fn simulation_serialization_deserialization_field_ordering() {
464
462
WebSimulation :: post_yaml ( models, connectors) ;
465
463
}
466
464
465
+ #[ test]
467
466
#[ wasm_bindgen_test]
468
467
fn simulation_serialization_deserialization_round_trip ( ) {
469
468
// Confirm a round trip deserialization-serialization
@@ -514,6 +513,7 @@ fn simulation_serialization_deserialization_round_trip() {
514
513
) ;
515
514
}
516
515
516
+ #[ test]
517
517
#[ wasm_bindgen_test]
518
518
fn ci_half_width_for_average_waiting_time ( ) {
519
519
let models = r#"
You can’t perform that action at this time.
0 commit comments