lawspec 0.20.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +361 -2
- package/README.md +3 -3
- package/beam-coverage.mjs +160 -0
- package/beam-doctor.mjs +306 -0
- package/bin/lawspec.mjs +306 -38
- package/build.json +492 -106
- package/compatibility.json +17 -0
- package/core.wasm +0 -0
- package/core_jsffi.js +2 -2
- package/doctor.mjs +7 -1
- package/examples/native-payments/elixir/lawspec.json +149 -0
- package/examples/native-payments/elixir/lib/payments_domain.ex +54 -0
- package/examples/native-payments/elixir/test/support/payment_generators.ex +9 -0
- package/examples/native-payments/erlang/include/payments_domain.hrl +2 -0
- package/examples/native-payments/erlang/lawspec.json +148 -0
- package/examples/native-payments/erlang/src/payments_domain.erl +21 -0
- package/examples/native-payments/erlang/test/payment_generators.erl +10 -0
- package/examples/native-payments/gleam/lawspec.json +149 -0
- package/examples/native-payments/gleam/prepare.mjs +48 -0
- package/examples/native-payments/gleam/src/payments_domain.gleam +32 -0
- package/examples/native-payments/gleam/test/payment_generators.gleam +13 -0
- package/examples/specs/abilities.lawspec +103 -0
- package/examples/specs/ability_imports.lawspec +107 -0
- package/examples/specs/builtins.lawspec +121 -0
- package/examples/specs/crypto.lawspec +51 -0
- package/examples/specs/distribution.lawspec +29 -0
- package/examples/specs/failures.lawspec +96 -0
- package/examples/specs/handler_bindings.lawspec +65 -0
- package/examples/specs/harness.lawspec +75 -0
- package/examples/specs/harness_testing.lawspec +45 -0
- package/examples/specs/matchers.lawspec +112 -0
- package/examples/specs/resources.lawspec +116 -0
- package/examples/specs/scheduling_order.lawspec +18 -0
- package/examples/specs/scheduling_overlap.lawspec +14 -0
- package/examples/specs/tables.lawspec +64 -0
- package/failure-database.mjs +46 -0
- package/index.d.ts +12 -1
- package/native-examples.mjs +7 -2
- package/package.json +1 -1
- package/templates.mjs +105 -16
- package/test-command.mjs +316 -35
package/templates.mjs
CHANGED
|
@@ -9,8 +9,57 @@ export const targets = [
|
|
|
9
9
|
"go",
|
|
10
10
|
"haskell",
|
|
11
11
|
"kotlin",
|
|
12
|
-
"rust"
|
|
12
|
+
"rust",
|
|
13
|
+
"erlang",
|
|
14
|
+
"elixir",
|
|
15
|
+
"gleam"
|
|
13
16
|
];
|
|
17
|
+
export const targetLabels = [
|
|
18
|
+
[
|
|
19
|
+
"java",
|
|
20
|
+
"Java"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"python",
|
|
24
|
+
"Python"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"javascript",
|
|
28
|
+
"JavaScript"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"typescript",
|
|
32
|
+
"TypeScript"
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"go",
|
|
36
|
+
"Go"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"haskell",
|
|
40
|
+
"Haskell"
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"kotlin",
|
|
44
|
+
"Kotlin"
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"rust",
|
|
48
|
+
"Rust"
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"erlang",
|
|
52
|
+
"Erlang"
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
"elixir",
|
|
56
|
+
"Elixir"
|
|
57
|
+
],
|
|
58
|
+
[
|
|
59
|
+
"gleam",
|
|
60
|
+
"Gleam"
|
|
61
|
+
]
|
|
62
|
+
];
|
|
14
63
|
|
|
15
64
|
export const commands = {
|
|
16
65
|
"java": "mvn test",
|
|
@@ -20,18 +69,24 @@ export const commands = {
|
|
|
20
69
|
"go": "go test ./...",
|
|
21
70
|
"haskell": "stack test",
|
|
22
71
|
"kotlin": "gradle test",
|
|
23
|
-
"rust": "cargo test"
|
|
72
|
+
"rust": "cargo test",
|
|
73
|
+
"erlang": "rebar3 eunit",
|
|
74
|
+
"elixir": "mix test",
|
|
75
|
+
"gleam": "gleam test"
|
|
24
76
|
};
|
|
25
77
|
|
|
26
78
|
export const setup = {
|
|
27
|
-
"java": "Use JDK 25+, Maven, JetCheck 0.3.0, JUnit Jupiter 5.14.x, compiler plugin 3.14.1+, Surefire 3.5.x, and maven.compiler.release=25. Run mvn test-compile.",
|
|
28
|
-
"python": "Use Python 3.13+. Install pytest 8.4.x and Hypothesis 6.x into the selected environment: python -m pip install -e \".[test]\". Configure pytest pythonpath=[\"src\"] and testpaths=[\"tests\"]. Set the target python field to the interpreter path if needed.",
|
|
29
|
-
"javascript": "Use Node 22+, package.json type=module,
|
|
30
|
-
"typescript": "Use Node 22+, package.json type=module,
|
|
31
|
-
"go": "Use Go 1.
|
|
32
|
-
"haskell": "Use Stack with lts-24.58 and test dependencies hspec, hedgehog, hspec-hedgehog, hspec-discover, and a test/Spec.hs using hspec-discover. Run stack build --test --no-run-tests.",
|
|
33
|
-
"kotlin": "Use JDK 25, Gradle 9.3.0, Kotlin plugin 2.3.21, JVM target 25, Kotest 5.9.1 (runner, assertions, property), and useJUnitPlatform(). Run gradle testClasses.",
|
|
34
|
-
"rust": "Use Rust 1.85+ with edition 2024, Proptest 1.11.0, num-bigint 0.4.8, num-rational 0.4.2, num-complex 0.4.6
|
|
79
|
+
"java": "Use JDK 25+, Maven, JetCheck 0.3.0, JUnit Jupiter 5.14.x, compiler plugin 3.14.1+, Surefire 3.5.x, and maven.compiler.release=25; a program that imports lawspec.crypto or lawspec.network also needs Bouncy Castle bcprov-jdk18on 1.86. Run mvn test-compile.",
|
|
80
|
+
"python": "Use Python 3.13+. Install pytest 8.4.x and Hypothesis 6.x into the selected environment, and, for a program that imports lawspec.crypto or lawspec.network, cryptography 50: python -m pip install -e \".[test]\". Configure pytest pythonpath=[\"src\"] and testpaths=[\"tests\"]. Set the target python field to the interpreter path if needed.",
|
|
81
|
+
"javascript": "Use Node 22+, package.json type=module, npm install --save-dev fast-check@4.10.2, and for a program that imports lawspec.crypto or lawspec.network npm install @noble/post-quantum@0.7.1.",
|
|
82
|
+
"typescript": "Use Node 22+, package.json type=module, npm install --save-dev fast-check@4.10.2 typescript@5.9.3 @types/node@22.20.4 (and npm install @noble/post-quantum@0.7.1 for a program that imports lawspec.crypto or lawspec.network). Configure tsconfig.json with module=NodeNext, target=ES2022, rootDir=., outDir=dist, include=[\"src/**/*.ts\",\"test/**/*.ts\"].",
|
|
83
|
+
"go": "Use Go 1.25+ and go get pgregory.net/rapid@v1.2.0 (and github.com/cloudflare/circl@v1.6.5 for a program that imports lawspec.crypto or lawspec.network), then go mod download.",
|
|
84
|
+
"haskell": "Use Stack with lts-24.58, directory and time as dependencies (and, for a program that imports lawspec.crypto, lawspec.network or lawspec.randomness, extra-deps crypton-1.1.5, ram-0.22.1, mlkem-0.2.3.0 and mldsa-0.1.1.0 as dependencies too), and test dependencies hspec, hedgehog, hspec-hedgehog, hspec-discover, and a test/Spec.hs using hspec-discover. Run stack build --test --no-run-tests.",
|
|
85
|
+
"kotlin": "Use JDK 25, Gradle 9.3.0, Kotlin plugin 2.3.21, JVM target 25, Kotest 5.9.1 (runner, assertions, property), and useJUnitPlatform(); a program that imports lawspec.crypto or lawspec.network also needs Bouncy Castle bcprov-jdk18on 1.86. Run gradle testClasses.",
|
|
86
|
+
"rust": "Use Rust 1.85+ with edition 2024, Proptest 1.11.0, num-bigint 0.4.8, num-rational 0.4.2, num-complex 0.4.6 and num-traits 0.2.19; a program that imports lawspec.crypto, lawspec.network or lawspec.randomness also needs sha3 0.12.0, shake 0.1.0, ml-kem 0.3.2, ml-dsa 0.1.1, slh-dsa 0.2.0-rc.5, aes-gcm 0.11.1 and getrandom 0.4.3. Run cargo test.",
|
|
87
|
+
"erlang": "Use Erlang/OTP 29, Rebar3 3.27.1 and PropEr 1.5.0 as a Hex dependency in the test profile. Configure {eunit_opts, [{print_depth, 100}, {report, {lawspec_beam_report, []}}]}. Run rebar3 as test compile to prepare dependencies, then rebar3 eunit. Custom test directories must be in extra_src_dirs. Programs importing lawspec.crypto or lawspec.network need OTP's post-quantum crypto support and a Unix C toolchain (WSL on Windows). Install OpenSSL 3.5+ development headers with the same major version as OTP, then run escript lawspec_crypto_build.escript before compiling. The builder uses pkg-config or Homebrew; LAWSPEC_OPENSSL_PREFIX overrides the installation. Ship the compiled priv directory with the application.",
|
|
88
|
+
"elixir": "Use Erlang/OTP 29, Elixir 1.20.x and StreamData 1.4.0 as a direct Hex test dependency. Run mix deps.get and MIX_ENV=test mix deps.compile. In MIX_ENV=test include src and test/support in erlc_paths, and lib and test/support in elixirc_paths. Add LawSpec.Beam.ExUnitFormatter to ExUnit's formatters in test/test_helper.exs and use unfiltered discovery. Run mix test. Programs importing lawspec.crypto or lawspec.network need OTP's post-quantum crypto support and a Unix C toolchain (WSL on Windows). Install OpenSSL 3.5+ development headers with the same major version as OTP, then run escript lawspec_crypto_build.escript before compiling. The builder uses pkg-config or Homebrew; LAWSPEC_OPENSSL_PREFIX overrides the installation. Ship the compiled priv directory with the application.",
|
|
89
|
+
"gleam": "Use Erlang/OTP 29, Gleam 1.18 or 1.19, gleam_stdlib 1.0.5, gleeunit 1.11.0 and qcheck 1.0.5. Select target=erlang, src/test directories, and the lawspec_test_support development dependency at ./test-support. In test/<package>_test.gleam use @external(erlang, \"lawspec_beam_test_run\", \"gleam_main\") pub fn main() -> Nil. Prepare dependencies with gleam build, then run gleam test. Programs importing lawspec.crypto or lawspec.network need OTP's post-quantum crypto support and a Unix C toolchain (WSL on Windows). Install OpenSSL 3.5+ development headers with the same major version as OTP, then run escript lawspec_crypto_build.escript before compiling. The builder uses pkg-config or Homebrew; LAWSPEC_OPENSSL_PREFIX overrides the installation. Ship the compiled priv directory with the application."
|
|
35
90
|
};
|
|
36
91
|
|
|
37
92
|
// Each target's build files in the readable and the compact (minified) layout.
|
|
@@ -46,10 +101,10 @@ const scaffolds = {
|
|
|
46
101
|
},
|
|
47
102
|
"python": {
|
|
48
103
|
"readable": {
|
|
49
|
-
"pyproject.toml": "[build-system]\nrequires = [\"setuptools==80.9.0\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"lawspec-example\"\nversion = \"0.1.0\"\nrequires-python = \">=3.13\"\n\n[project.optional-dependencies]\ntest = [\"pytest==8.4.2\", \"hypothesis==6.135.26\"]\n\n[tool.setuptools.packages.find]\nwhere = [\"src\"]\n\n[tool.pytest.ini_options]\npythonpath = [\"src\"]\ntestpaths = [\"tests\"]\n"
|
|
104
|
+
"pyproject.toml": "[build-system]\nrequires = [\"setuptools==80.9.0\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"lawspec-example\"\nversion = \"0.1.0\"\nrequires-python = \">=3.13\"\ndependencies = []\n\n[project.optional-dependencies]\ntest = [\"pytest==8.4.2\", \"hypothesis==6.135.26\"]\n\n[tool.setuptools.packages.find]\nwhere = [\"src\"]\n\n[tool.pytest.ini_options]\npythonpath = [\"src\"]\ntestpaths = [\"tests\"]\n"
|
|
50
105
|
},
|
|
51
106
|
"compact": {
|
|
52
|
-
"pyproject.toml": "[build-system]\nrequires = [\"setuptools==80.9.0\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"lawspec-example\"\nversion = \"0.1.0\"\nrequires-python = \">=3.13\"\n\n[project.optional-dependencies]\ntest = [\"pytest==8.4.2\", \"hypothesis==6.135.26\"]\n\n[tool.setuptools.packages.find]\nwhere = [\"src\"]\n\n[tool.pytest.ini_options]\npythonpath = [\"src\"]\ntestpaths = [\"tests\"]\n"
|
|
107
|
+
"pyproject.toml": "[build-system]\nrequires = [\"setuptools==80.9.0\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"lawspec-example\"\nversion = \"0.1.0\"\nrequires-python = \">=3.13\"\ndependencies = []\n\n[project.optional-dependencies]\ntest = [\"pytest==8.4.2\", \"hypothesis==6.135.26\"]\n\n[tool.setuptools.packages.find]\nwhere = [\"src\"]\n\n[tool.pytest.ini_options]\npythonpath = [\"src\"]\ntestpaths = [\"tests\"]\n"
|
|
53
108
|
}
|
|
54
109
|
},
|
|
55
110
|
"javascript": {
|
|
@@ -72,21 +127,21 @@ const scaffolds = {
|
|
|
72
127
|
},
|
|
73
128
|
"go": {
|
|
74
129
|
"readable": {
|
|
75
|
-
"go.mod": "module example.com/lawspec-example\n\ngo 1.
|
|
130
|
+
"go.mod": "module example.com/lawspec-example\n\ngo 1.25.0\n\nrequire pgregory.net/rapid v1.2.0\n"
|
|
76
131
|
},
|
|
77
132
|
"compact": {
|
|
78
|
-
"go.mod": "module example.com/lawspec-example\n\ngo 1.
|
|
133
|
+
"go.mod": "module example.com/lawspec-example\n\ngo 1.25.0\n\nrequire pgregory.net/rapid v1.2.0\n"
|
|
79
134
|
}
|
|
80
135
|
},
|
|
81
136
|
"haskell": {
|
|
82
137
|
"readable": {
|
|
83
138
|
"stack.yaml": "snapshot: lts-24.58\npackages: [.]\n",
|
|
84
|
-
"package.yaml": "name: lawspec-example\nversion: 0.1.0\ndependencies: [base, text, bytestring, containers, network]\nlibrary:\n source-dirs: src\ntests:\n laws:\n main: Spec.hs\n source-dirs: test\n dependencies: [lawspec-example, hspec, hedgehog, hspec-hedgehog, containers, mtl]\n build-tools: [hspec-discover]\n",
|
|
139
|
+
"package.yaml": "name: lawspec-example\nversion: 0.1.0\ndependencies: [base, text, bytestring, containers, network, directory, time]\nlibrary:\n source-dirs: src\ntests:\n laws:\n main: Spec.hs\n source-dirs: test\n dependencies: [lawspec-example, hspec, hedgehog, hspec-hedgehog, containers, mtl]\n ghc-options: [-threaded, -rtsopts, \"-with-rtsopts=-N\"]\n build-tools: [hspec-discover]\n",
|
|
85
140
|
"test/Spec.hs": "{-# OPTIONS_GHC -F -pgmF hspec-discover #-}\n"
|
|
86
141
|
},
|
|
87
142
|
"compact": {
|
|
88
143
|
"stack.yaml": "snapshot: lts-24.58\npackages: [.]\n",
|
|
89
|
-
"package.yaml": "name: lawspec-example\nversion: 0.1.0\ndependencies: [base, text, bytestring, containers, network]\nlibrary:\n source-dirs: src\ntests:\n laws:\n main: Spec.hs\n source-dirs: test\n dependencies: [lawspec-example, hspec, hedgehog, hspec-hedgehog, containers, mtl]\n build-tools: [hspec-discover]\n",
|
|
144
|
+
"package.yaml": "name: lawspec-example\nversion: 0.1.0\ndependencies: [base, text, bytestring, containers, network, directory, time]\nlibrary:\n source-dirs: src\ntests:\n laws:\n main: Spec.hs\n source-dirs: test\n dependencies: [lawspec-example, hspec, hedgehog, hspec-hedgehog, containers, mtl]\n ghc-options: [-threaded, -rtsopts, \"-with-rtsopts=-N\"]\n build-tools: [hspec-discover]\n",
|
|
90
145
|
"test/Spec.hs": "{-# OPTIONS_GHC -F -pgmF hspec-discover #-}\n"
|
|
91
146
|
}
|
|
92
147
|
},
|
|
@@ -109,6 +164,40 @@ const scaffolds = {
|
|
|
109
164
|
"src/lib.rs": "// Application library. LawSpec maintains the included module declarations.\ninclude!(\"lawspec_modules.rs\");\n",
|
|
110
165
|
"Cargo.toml": "[package]\nname = \"lawspec-example\"\nversion = \"0.1.0\"\nedition = \"2024\"\nrust-version = \"1.85\"\npublish = false\n\n[dependencies]\nnum-bigint = \"=0.4.8\"\nnum-rational = \"=0.4.2\"\nnum-complex = \"=0.4.6\"\nnum-traits = \"=0.2.19\"\n\n[dev-dependencies]\nproptest = \"=1.11.0\"\n"
|
|
111
166
|
}
|
|
167
|
+
},
|
|
168
|
+
"erlang": {
|
|
169
|
+
"readable": {
|
|
170
|
+
"rebar.config": "{erl_opts, [debug_info]}.\n{eunit_opts, [{print_depth, 100}, {report, {lawspec_beam_report, []}}]}.\n{profiles, [{test, [{deps, [{proper, \"1.5.0\"}]}]}]}.\n",
|
|
171
|
+
"src/lawspec_example.app.src": "{application, lawspec_example, [\n {description, \"LawSpec example\"},\n {vsn, \"0.1.0\"},\n {modules, []},\n {registered, []},\n {applications, [kernel, stdlib]}\n]}.\n"
|
|
172
|
+
},
|
|
173
|
+
"compact": {
|
|
174
|
+
"rebar.config": "{erl_opts, [debug_info]}.\n{eunit_opts, [{print_depth, 100}, {report, {lawspec_beam_report, []}}]}.\n{profiles, [{test, [{deps, [{proper, \"1.5.0\"}]}]}]}.\n",
|
|
175
|
+
"src/lawspec_example.app.src": "{application, lawspec_example, [\n {description, \"LawSpec example\"},\n {vsn, \"0.1.0\"},\n {modules, []},\n {registered, []},\n {applications, [kernel, stdlib]}\n]}.\n"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"elixir": {
|
|
179
|
+
"readable": {
|
|
180
|
+
"mix.exs": "defmodule LawSpecExample.MixProject do\n use Mix.Project\n\n def project do\n [app: :lawspec_example, version: \"0.1.0\", elixir: \"~> 1.20\",\n erlc_paths: [\"src\"] ++ test_paths(), elixirc_paths: [\"lib\"] ++ test_paths(),\n deps: [{:stream_data, \"== 1.4.0\", only: :test}]]\n end\n\n defp test_paths, do: if(Mix.env() == :test, do: [\"test/support\"], else: [])\n\n def application do\n [extra_applications: [:logger]]\n end\nend\n",
|
|
181
|
+
"test/test_helper.exs": "case System.get_env(\"LAWSPEC_SEED\") do\n nil -> ExUnit.start()\n seed -> ExUnit.start(seed: String.to_integer(seed))\nend\nif Code.ensure_loaded?(LawSpec.Beam.ExUnitFormatter) do\n ExUnit.configure(formatters: Enum.uniq(ExUnit.configuration()[:formatters] ++ [LawSpec.Beam.ExUnitFormatter]))\nend\nif Code.ensure_loaded?(:lawspec_beam_resources) do\n :lawspec_beam_resources.configure_suite(Process.whereis(ExUnit.Server))\n ExUnit.after_suite(fn _ -> :lawspec_beam_resources.stop_suite() end)\nend\n"
|
|
182
|
+
},
|
|
183
|
+
"compact": {
|
|
184
|
+
"mix.exs": "defmodule LawSpecExample.MixProject do\n use Mix.Project\n\n def project do\n [app: :lawspec_example, version: \"0.1.0\", elixir: \"~> 1.20\",\n erlc_paths: [\"src\"] ++ test_paths(), elixirc_paths: [\"lib\"] ++ test_paths(),\n deps: [{:stream_data, \"== 1.4.0\", only: :test}]]\n end\n\n defp test_paths, do: if(Mix.env() == :test, do: [\"test/support\"], else: [])\n\n def application do\n [extra_applications: [:logger]]\n end\nend\n",
|
|
185
|
+
"test/test_helper.exs": "case System.get_env(\"LAWSPEC_SEED\") do\n nil -> ExUnit.start()\n seed -> ExUnit.start(seed: String.to_integer(seed))\nend\nif Code.ensure_loaded?(LawSpec.Beam.ExUnitFormatter) do\n ExUnit.configure(formatters: Enum.uniq(ExUnit.configuration()[:formatters] ++ [LawSpec.Beam.ExUnitFormatter]))\nend\nif Code.ensure_loaded?(:lawspec_beam_resources) do\n :lawspec_beam_resources.configure_suite(Process.whereis(ExUnit.Server))\n ExUnit.after_suite(fn _ -> :lawspec_beam_resources.stop_suite() end)\nend\n"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"gleam": {
|
|
189
|
+
"readable": {
|
|
190
|
+
"gleam.toml": "name = \"lawspec_example\"\nversion = \"0.1.0\"\ngleam = \">= 1.18.0\"\ntarget = \"erlang\"\n\n[dependencies]\ngleam_stdlib = \"== 1.0.5\"\n\n[dev-dependencies]\ngleeunit = \"== 1.11.0\"\nqcheck = \"== 1.0.5\"\nlawspec_test_support = { path = \"./test-support\" }\n",
|
|
191
|
+
"test-support/gleam.toml": "# Generated test helpers are a development-only dependency.\nname = \"lawspec_test_support\"\nversion = \"0.1.0\"\ntarget = \"erlang\"\n\n[dependencies]\nqcheck = \"== 1.0.5\"\n",
|
|
192
|
+
"test-support/src/.gitkeep": "",
|
|
193
|
+
"test/lawspec_example_test.gleam": "@external(erlang, \"lawspec_beam_test_run\", \"gleam_main\")\npub fn main() -> Nil\n"
|
|
194
|
+
},
|
|
195
|
+
"compact": {
|
|
196
|
+
"gleam.toml": "name = \"lawspec_example\"\nversion = \"0.1.0\"\ngleam = \">= 1.18.0\"\ntarget = \"erlang\"\n\n[dependencies]\ngleam_stdlib = \"== 1.0.5\"\n\n[dev-dependencies]\ngleeunit = \"== 1.11.0\"\nqcheck = \"== 1.0.5\"\nlawspec_test_support = { path = \"./test-support\" }\n",
|
|
197
|
+
"test-support/gleam.toml": "# Generated test helpers are a development-only dependency.\nname = \"lawspec_test_support\"\nversion = \"0.1.0\"\ntarget = \"erlang\"\n\n[dependencies]\nqcheck = \"== 1.0.5\"\n",
|
|
198
|
+
"test-support/src/.gitkeep": "",
|
|
199
|
+
"test/lawspec_example_test.gleam": "@external(erlang, \"lawspec_beam_test_run\", \"gleam_main\")\npub fn main() -> Nil\n"
|
|
200
|
+
}
|
|
112
201
|
}
|
|
113
202
|
};
|
|
114
203
|
|