diff --git a/test/runtests.jl b/test/runtests.jl index 2e6526e..2635f44 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -51,31 +51,6 @@ true || include("../src/PSBoardDataBase.jl") Iterators.drop(eachline("./input/slavelogs/main/430_100.txt"), 2280), ) result_asdtp = PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines) - # target = PSBoardDataBase.SlaveLogParser.AsdtpResult( - # 1, - # 0, - # true, - # fill(PSBoardDataBase.SlaveLogParser.AsdtpMeasurement.(fill((0, 1, 0), 32)), 8), - # 0, - # 1, - # 1, - # 0, - # 0x1, - # 0x1, - # 0xff, - # 0x0, - # 0x0, - # 0x0, - # MVector((0x1001, 0x2001, 0x3001, 0x4001, 0x5001, 0x6001, 0x7001, 0x8001)), - # ) - # @info "" target == result_asdtp zip(result_asdtp.pp_pllds, target.pp_pllds) |> - # collect result_asdtp.pp_pllds == target.pp_pllds Iterators.filter( - # x -> x[1] != x[2], - # zip(result_asdtp.pp_pllds, target.pp_pllds), - # ) |> collect - # @info "" map(fieldnames(typeof(result_asdtp))) do field - # (; field, diff = getfield(result_asdtp, field) == getfield(target, field)) - # end @test result_asdtp == PSBoardDataBase.SlaveLogParser.AsdtpResult( 1, @@ -98,10 +73,8 @@ true || include("../src/PSBoardDataBase.jl") lines = Iterators.Stateful( Iterators.drop(eachline("./input/slavelogs/main/525_244.txt"), 2280), ) - PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines) - # PSBoardDataBase.SlaveLogParser.parse_slavelog_file( - # "./input/slavelogs/main/525_244.txt", - # ) + result_asdtp = PSBoardDataBase.SlaveLogParser.parse_asdtp_section!(lines) + @test result_asdtp.reconfig_done == 0 end @testset "Download data csv" begin