Bonjour!
I started this exercise yesterday and almost solved - it works in the REPL - but not in Exercism.
and there are error messages I don’t understand
can anyone be of any help, please:
monitor the machine - passing
Code Run
@test machinemonitor(53, 200)
Test Error
AssertionError: !(isempty(msg_h)) || !(isempty(msg_t))
Stacktrace:
[1] machinemonitor(pct_humidity::Int64, temperature::Int64)
@ ExercismTestReports ./factory-sensors.jl:67
[2] (::ExercismTestReports.var"#19#20")()
@ ExercismTestReports ./none:-1
[3] with_logstate(f::ExercismTestReports.var"#19#20", logstate::Base.CoreLogging.LogState)
@ Base.CoreLogging ./logging/logging.jl:542
[4] with_logger(f::Function, logger::Test.TestLogger)
@ Base.CoreLogging ./logging/logging.jl:653
[5] #collect_test_logs#50
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/logging.jl:126 [inlined]
[6] collect_test_logs
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/logging.jl:124 [inlined]
[7] match_logs(::Function, ::Tuple{Symbol, String}, ::Vararg{Tuple{Symbol, String}}; match_mode::Symbol, kwargs::@Kwargs{})
@ Test /usr/local/julia/share/julia/stdlib/v1.12/Test/src/logging.jl:274
[8] match_logs(::Function, ::Tuple{Symbol, String}, ::Vararg{Tuple{Symbol, String}})
@ Test /usr/local/julia/share/julia/stdlib/v1.12/Test/src/logging.jl:273
[9] top-level scope
@ ./runtests.jl:6
[10] macro expansion
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1776 [inlined]
[11] macro expansion
@ ./runtests.jl:34 [inlined]
[12] macro expansion
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1776 [inlined]
[13] macro expansion
@ ./runtests.jl:35 [inlined]
[14] macro expansion
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1776 [inlined]
[15] macro expansion
@ ./runtests.jl:35 [inlined]
monitor the machine - failing
Code Run
@test_throws ExercismTestReports.MachineError machinemonitor(52, nothing)
Test Failure
Test Failed at ./runtests.jl:43
Expression: machinemonitor(52, nothing)
Expected: ExercismTestReports.MachineError
Thrown: AssertionError
AssertionError: !(isempty(msg_h)) || !(isempty(msg_t))
Stacktrace:
[1] machinemonitor(pct_humidity::Int64, temperature::Nothing)
@ ExercismTestReports ./factory-sensors.jl:67
[2] macro expansion
@ ./runtests.jl:43 [inlined]
[3] macro expansion
@ /usr/local/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:774 [inlined]
[4] (::ExercismTestReports.var"#23#24")()
@ ExercismTestReports ./none:0
thanks for any help in advance,
Nisang