alpha
Login
or
Join now
nandi.uk
/
gleam
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Fork of daniellemaywood.uk/gleam — Wasm codegen work
Star
2
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Add language test
author
GearsDatapacks
committer
Louis Pilfold
date
1 year ago
(Jul 3, 2025, 5:38 PM +0100)
commit
7e15dd2e
7e15dd2e6e1651dae5f2fd1a0b0ccb95a1bfd086
parent
df053174
df0531741ae3414b30c188bcb7df5a35adcef7eb
+8
-2
2 changed files
Expand all
Collapse all
Unified
Split
compiler-core
src
javascript
tests
snapshots
gleam_core__javascript__tests__bit_arrays__multiple_variable_size_segments.snap
test
language
test
language_test.gleam
-2
compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__bit_arrays__multiple_variable_size_segments.snap.new
compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__bit_arrays__multiple_variable_size_segments.snap
View file
Reviewed
···
1
1
---
2
2
source: compiler-core/src/javascript/tests/bit_arrays.rs
3
3
-
assertion_line: 2533
4
3
expression: "\npub fn main() {\n let assert <<a, b:size(a), c:size(b)>> = <<1, 2, 3, 4>>\n a + b + c\n}\n"
5
5
-
snapshot_kind: text
6
4
---
7
5
----- SOURCE CODE
8
6
+8
test/language/test/language_test.gleam
View file
Reviewed
···
2206
2206
i
2207
2207
})
2208
2208
}),
2209
2209
+
// https://github.com/gleam-lang/gleam/issues/4712
2210
2210
+
"Multiple variable segments"
2211
2211
+
|> example(fn() {
2212
2212
+
assert_equal(12, {
2213
2213
+
let assert <<a, b:size(a), c:size(b)>> = <<2, 3:2, 7:3>>
2214
2214
+
a + b + c
2215
2215
+
})
2216
2216
+
}),
2209
2217
]
2210
2218
}
2211
2219