From 0838c0968c0c93aaad57e361c84d41160f9e5624 Mon Sep 17 00:00:00 2001 From: Stardew Date: Fri, 20 Sep 2024 10:57:28 -0400 Subject: [PATCH] Stabilized HelloWorld.jl to resolve the build error. --- code/stable/gooltest/julia/HelloWorld/HelloWorld.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/stable/gooltest/julia/HelloWorld/HelloWorld.jl b/code/stable/gooltest/julia/HelloWorld/HelloWorld.jl index 6cdc74574c..35dc75e382 100644 --- a/code/stable/gooltest/julia/HelloWorld/HelloWorld.jl +++ b/code/stable/gooltest/julia/HelloWorld/HelloWorld.jl @@ -28,8 +28,8 @@ println(boringList) @assert b == 5 "b should be 5" @assert length(myOtherList) == 4 "myOtherList should have 4 elements" @assert oneIndex == 0 "oneIndex should be 0" -global s = [4, 7, 5] -@assert findfirst(x -> x == 7, s) - 1 "Set s should contain 7" +global s = Set([4, 7, 5]) +@assert in(7, s) "Set s should contain 7" # List slicing tests # Create variables for list slices