Skip to content

Commit 2a0b188

Browse files
authored
Merge pull request #348 from jgray-19/ng_vs_ng
Subelement NG vs NG Tests
2 parents e9db555 + 4ce036a commit 2a0b188

File tree

3 files changed

+305
-18
lines changed

3 files changed

+305
-18
lines changed

tests/tests/test-ng-maps/test-ng-maps.mad

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ local ref_cfg = object "ref" {
4141
order = 4, -- 2/4
4242
icase = 56, -- 56/6
4343
debug = 0, -- 0/6
44+
seql = 1.5,
45+
cmap = false, -- false/true
4446

4547
-- list of core values that are changed manually throughout the tests
4648
edir = 1, -- 1/-1 (element direction)
@@ -88,7 +90,7 @@ local function testDRIFT()
8890
},
8991
}
9092

91-
run_test(cfg, {alist={}})
93+
run_test(cfg)
9294
end
9395

9496
local function testQUAD() -- Test the body (~2 min)
@@ -223,7 +225,7 @@ local function testSBEND() -- Test the body (~2 min)
223225
legend = default_plot_cfg.legend,
224226
}
225227
}
226-
run_test(cfg, {alist = {}})
228+
run_test(cfg)
227229
end
228230

229231
local function testRBEND() -- Test the body (~2 min)
@@ -253,7 +255,7 @@ local function testRBEND() -- Test the body (~2 min)
253255
series = default_plot_cfg.series,
254256
legend = default_plot_cfg.legend,
255257
} }
256-
run_test(cfg, {alist = {}})
258+
run_test(cfg)
257259
end
258260

259261
local function testRBENDPARALLEL()
@@ -283,7 +285,7 @@ local function testRBENDPARALLEL()
283285
legend = default_plot_cfg.legend,
284286
}
285287
}
286-
run_test(cfg, {alist = {}})
288+
run_test(cfg)
287289
end
288290

289291
local function testRFMULTIPOLE()
@@ -310,7 +312,7 @@ local function testRFMULTIPOLE()
310312
alist = tblcat(ref_cfg.alist, {"knl"}),
311313
}
312314

313-
run_test(cfg, {alist={}})
315+
run_test(cfg)
314316
end
315317

316318
local function testSOL()
@@ -333,7 +335,7 @@ local function testSOL()
333335
},
334336
}
335337

336-
run_test(cfg, {alist={}})
338+
run_test(cfg)
337339
end
338340

339341
local function testRFCAVITY()
@@ -359,7 +361,7 @@ local function testRFCAVITY()
359361
},
360362
}
361363

362-
run_test(cfg, {alist={}})
364+
run_test(cfg)
363365
end
364366

365367
local function testKICKER()
@@ -385,7 +387,7 @@ local function testKICKER()
385387
},
386388
}
387389

388-
run_test(cfg, {alist={}})
390+
run_test(cfg)
389391
end
390392

391393
local function testELSEPARATOR()
@@ -415,7 +417,7 @@ local function testELSEPARATOR()
415417
},
416418
}
417419

418-
run_test(cfg, {alist={}})
420+
run_test(cfg)
419421
end
420422

421423
local function testCCAVITY()
@@ -441,7 +443,7 @@ local function testCCAVITY()
441443
},
442444
}
443445

444-
run_test(cfg, {alist={}})
446+
run_test(cfg)
445447
end
446448

447449
local function testMULTIPOLE()
@@ -490,7 +492,7 @@ local function testMULTIPOLE()
490492
},
491493
}
492494

493-
run_test(cfg, {alist={}})
495+
run_test(cfg)
494496
end
495497

496498
local function testROTATION()
@@ -516,7 +518,7 @@ local function testROTATION()
516518
},
517519
}
518520

519-
run_test(cfg, {alist={}})
521+
run_test(cfg)
520522
end
521523

522524
local function testTRANSLATE() -- Needs verification about tdir and sdir
@@ -544,7 +546,7 @@ local function testTRANSLATE() -- Needs verification about tdir and sdir
544546
},
545547
}
546548

547-
run_test(cfg, {alist={}})
549+
run_test(cfg)
548550
end
549551

550552
local function testCHANGEREF()
@@ -574,7 +576,7 @@ local function testCHANGEREF()
574576
},
575577
}
576578

577-
run_test(cfg, {alist={}})
579+
run_test(cfg)
578580
end
579581

580582
testDRIFT()

0 commit comments

Comments
 (0)