Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

1// SPDX-License-Identifier: Apache-2.0 2// SPDX-FileCopyrightText: 2023 The Gleam contributors 3 4use super::*; 5 6#[test] 7fn module_name_validation() { 8 assert!(validate_module_name(&"dream".into()).is_ok()); 9 10 assert!(validate_module_name(&"gleam".into()).is_err()); 11 12 assert!(validate_module_name(&"gleam/ok".into()).is_ok()); 13 14 assert!(validate_module_name(&"ok/gleam".into()).is_ok()); 15 16 assert!(validate_module_name(&"type".into()).is_err()); 17 18 assert!(validate_module_name(&"pub".into()).is_err()); 19 20 assert!(validate_module_name(&"ok/type".into()).is_err()); 21 22 assert!(validate_module_name(&"ok/pub".into()).is_err()); 23}