mirror of
https://github.com/emacs-twist/org-babel.git
synced 2024-12-14 11:07:30 +00:00
42 lines
793 B
Nix
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";
|
|
};
|
|
};
|
|
|
|
}
|