1
0
Fork 0
mirror of https://github.com/emacs-twist/org-babel.git synced 2024-12-14 11:07:30 +00:00
org-babel/test/testParams.nix
2022-02-06 00:57:04 +09:00

42 lines
793 B
Nix

# nix-instantiate --eval --strict test/testParams.nix
let
pkgs = import <nixpkgs> {};
parse = import ../nix/parseParamsString.nix;
in
pkgs.lib.runTests {
testSimple = {
expr = parse ":tangle no";
expected = {
":tangle" = "no";
};
};
testOdd = {
expr = parse ":async";
expected = {
":async" = true;
};
};
testNonAlpha = {
expr = parse ":session kernel-16577-ssh.json";
expected = {
":session" = "kernel-16577-ssh.json";
};
};
# This case is unsupported right now.
#
# testExpression = {
# expr = parse ":value '(this is so annoying)";
# expected = { };
# };
testDoubleQuotes = {
expr = parse ":caption \"Hello, I am Katja\"";
expected = {
":caption" = "Hello, I am Katja";
};
};
}