Skip to content

Commit a77f74d

Browse files
committed
v0.25.0
1 parent 1cd95fb commit a77f74d

File tree

5 files changed

+3
-35
lines changed

5 files changed

+3
-35
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## v0.24.1 - unreleased
3+
## v0.25.0 - 2022-11-19
44

55
- Fixed a bug where `list.permutations` would not correctly permutate lists
66
with non-unique item values.

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "gleam_stdlib"
2-
version = "0.24.0"
2+
version = "0.25.0"
33
licences = ["Apache-2.0"]
44
description = "A standard library for the Gleam programming language"
55

test/gleam/list_test.gleam

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,14 +1095,6 @@ pub fn combinations_test() {
10951095

10961096
list.combinations([1, 2, 3, 4], 3)
10971097
|> should.equal([[1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]])
1098-
1099-
// TCO test
1100-
case recursion_test_cycles > 2 {
1101-
True ->
1102-
list.range(1, 20)
1103-
|> list.combinations(20 / 2)
1104-
False -> []
1105-
}
11061098
}
11071099

11081100
pub fn combination_pairs_test() {

test/gleam/string_test.gleam

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@ import gleam/order
33
import gleam/should
44
import gleam/string
55

6-
if erlang {
7-
const recursion_test_cycles = 1_000_000
8-
}
9-
10-
if javascript {
11-
// JavaScript engines crash when exceeding a certain stack size:
12-
//
13-
// - Chrome 106 and NodeJS V16, V18, and V19 crash around 10_000+
14-
// - Firefox 106 crashes around 35_000+.
15-
// - Safari 16 crashes around 40_000+.
16-
const recursion_test_cycles = 40_000
17-
}
18-
196
pub fn length_test() {
207
string.length("ß↑e̊")
218
|> should.equal(3)
@@ -66,12 +53,6 @@ pub fn reverse_test() {
6653
|> string.reverse
6754
|> string.reverse
6855
|> should.equal("👶🏿")
69-
70-
"abc"
71-
|> string.repeat(recursion_test_cycles)
72-
|> string.reverse
73-
|> string.starts_with("cba")
74-
|> should.be_true
7556
}
7657

7758
pub fn split_test() {
@@ -252,11 +233,6 @@ pub fn slice_test() {
252233
"👶🏿"
253234
|> string.slice(at_index: 0, length: 3)
254235
|> should.equal("👶🏿")
255-
256-
"aaa"
257-
|> string.repeat(recursion_test_cycles)
258-
|> string.slice(at_index: recursion_test_cycles / 2, length: 3)
259-
|> should.equal("aaa")
260236
}
261237

262238
pub fn crop_test() {

test/gleam_stdlib_test_ffi.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { opendir } from "fs/promises";
22

3-
const dir = "build/dev/javascript/gleam_stdlib/dist/gleam/";
3+
const dir = "build/dev/javascript/gleam_stdlib/gleam/";
44

55
export async function main() {
66
console.log("Running tests...");

0 commit comments

Comments
 (0)