Skip to content

Commit

Permalink
test format
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Jun 26, 2024
1 parent 2f34e43 commit a658b00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ using Test, SafeTestsets
BM = BaseModelica
PC = BM.ParserCombinator


arith_test = only(PC.parse_one("5 + 6*(45 + 9^2)^2", BM.arithmetic_expression))
@test arith_test isa BM.BaseModelicaSum
@test BM.eval_AST(arith_test) == 95261.0


newton_path = joinpath(
dirname(dirname(pathof(BM))),"test", "testfiles", "NewtonCoolingBase.mo")
dirname(dirname(pathof(BM))), "test", "testfiles", "NewtonCoolingBase.mo")
newton_cooling = BM.parse_file(newton_path)
@test newton_cooling isa BM.BaseModelicaPackage
newton_system = BM.baseModelica_to_ModelingToolkit(newton_cooling)
Expand Down

0 comments on commit a658b00

Please sign in to comment.