brewery
notashelf /
b3dcba607b58c70a5cb4245e29ed315abd0b3db7

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/string_interp.nixNix20 lines394 B
1
# Test string interpolation
2
let
3
  name = "world";
4
  x = 42;
5
  bool_val = true;
6
in {
7
  # Simple interpolation
8
  greeting = "Hello ${name}!";
9
10
  # Multiple interpolations
11
  multi = "x is ${x} and name is ${name}";
12
13
  # Expression evaluation in interpolation
14
  computed = "x + 10 = ${x + 10}";
15
16
  bool_check = "${bool_val} is true!";
17
18
  # Just a string, no interpolation
19
  plain = "plain text";
20
}