Skip to content

Commit

Permalink
update stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpeinhardt committed Feb 1, 2024
1 parent 2474526 commit 9a8a568
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unpublished

## v1.1.0 - 1 February 2024
- Update gleam_stdlib = "~> 0.34 or ~> 1.0" in prep for 1.0

## v1.0.0 - December 28 2023
- Completely change the api again and then do v1 (woohoo)

Expand Down
4 changes: 2 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "testbldr"
version = "1.0.0"
version = "1.1.0"
description = "A library for programatically building and running test cases"

# Fill out these fields if you intend to generate HTML documentation or publish
Expand All @@ -12,6 +12,6 @@ dev-dependencies = { gleeunit = "~> 1.0", gleam_json = "~> 0.7"}
# links = [{ title = "Website", href = "https://gleam.run" }]

[dependencies]
gleam_stdlib = "~> 0.32"
gleam_stdlib = "~> 0.34 or ~> 1.0"
gleam_erlang = "~> 0.23"
simplifile = "~> 1.0"
12 changes: 6 additions & 6 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_erlang", version = "0.23.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "C21CFB816C114784E669FFF4BBF433535EEA9960FA2F216209B8691E87156B96" },
{ name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" },
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
{ name = "simplifile", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0BD6F0E7DA1A7E11D18B8AD48453225CAFCA4C8CFB4513D217B372D2866C501C" },
{ name = "gleam_erlang", version = "0.24.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "26BDB52E61889F56A291CB34167315780EE4AA20961917314446542C90D1C1A0" },
{ name = "gleam_json", version = "0.7.0", build_tools = ["gleam"], requirements = ["thoas", "gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "CB405BD93A8828BCD870463DE29375E7B2D252D9D124C109E5B618AAC00B86FC" },
{ name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
{ name = "simplifile", version = "1.4.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "AAFCF154F69B237D269FF2764890F61ABC4A7EF2A592D44D67627B99694539D9" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
]

[requirements]
gleam_erlang = { version = "~> 0.23" }
gleam_json = { version = "~> 0.7" }
gleam_stdlib = { version = "~> 0.32" }
gleam_stdlib = { version = "~> 0.34 or ~> 1.0" }
gleeunit = { version = "~> 1.0" }
simplifile = { version = "~> 1.0" }
9 changes: 7 additions & 2 deletions src/testbldr.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ fn ratio_to_string(passed: Int, total: Int) -> String {
True -> "✅"
False -> "❌"
}

prefix_emoji <> " " <> int.to_string(passed) <> "/" <> int.to_string(total) <> " tests passed"

prefix_emoji
<> " "
<> int.to_string(passed)
<> "/"
<> int.to_string(total)
<> " tests passed"
}
8 changes: 7 additions & 1 deletion src/testbldr/should.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,11 @@ pub fn be_error(a: Result(a, b)) -> testbldr.TestOutcome {
}

fn bin_op_msg(lhs: a, op: String, rhs: b) -> String {
"\nlhs: " <> string.inspect(lhs) <> "\nrhs: " <> string.inspect(rhs) <> "\nassertion lhs " <> op <> " rhs failed\n"
"\nlhs: "
<> string.inspect(lhs)
<> "\nrhs: "
<> string.inspect(rhs)
<> "\nassertion lhs "
<> op
<> " rhs failed\n"
}

0 comments on commit 9a8a568

Please sign in to comment.