Make UUID Identfier only a distinct byte array

This commit is contained in:
Feoramund
2024-06-21 09:56:41 -04:00
parent 31873ed466
commit 6da99b888a
5 changed files with 40 additions and 50 deletions

View File

@@ -52,7 +52,7 @@ test_namespaced_uuids :: proc(t: ^testing.T) {
test_writing :: proc(t: ^testing.T) {
id: uuid.Identifier
for &b, i in id.bytes {
for &b, i in id {
b = u8(i)
}
@@ -67,7 +67,7 @@ test_reading :: proc(t: ^testing.T) {
id, err := uuid.read("00010203-0405-0607-0809-0a0b0c0d0e0f")
testing.expect_value(t, err, nil)
for b, i in id.bytes {
for b, i in id {
testing.expect_value(t, b, u8(i))
}
}