event 249 solution
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
diff --git a/tests/acceptance/1/CRITERIA.json b/tests/acceptance/1/CRITERIA.json
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..42eb7eb2f8b2de82676dc36961f10506f45830fa
|
||||
--- /dev/null
|
||||
+++ b/tests/acceptance/1/CRITERIA.json
|
||||
@@ -0,0 +1,18 @@
|
||||
+{
|
||||
+ "schema": "elffuss-t2t/criteria@2",
|
||||
+ "issue": 1,
|
||||
+ "criteria": [
|
||||
+ {
|
||||
+ "index": 1,
|
||||
+ "tests": [
|
||||
+ "tests/acceptance/1/criteria.test.js::criterion 1"
|
||||
+ ]
|
||||
+ },
|
||||
+ {
|
||||
+ "index": 2,
|
||||
+ "tests": [
|
||||
+ "tests/acceptance/1/criteria.test.js::criterion 2"
|
||||
+ ]
|
||||
+ }
|
||||
+ ]
|
||||
+}
|
||||
diff --git a/tests/acceptance/1/criteria.test.js b/tests/acceptance/1/criteria.test.js
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..84650a6cc02a64b7461540cc4443338221a73417
|
||||
--- /dev/null
|
||||
+++ b/tests/acceptance/1/criteria.test.js
|
||||
@@ -0,0 +1,14 @@
|
||||
+import { test } from 'node:test'
|
||||
+import assert from 'node:assert/strict'
|
||||
+import { readFileSync } from 'node:fs'
|
||||
+const text = readFileSync(new URL('../../../README.md', import.meta.url), 'utf8') // the content of README.md
|
||||
+
|
||||
+test('criterion 1', () => {
|
||||
+ // README.md contains no link whose target is `bench/` unless that directory exists in the repository.
|
||||
+ assert.strictEqual(text.includes('bench/'), false, 'README.md should not contain a link target to bench/ unless the directory exists.')
|
||||
+})
|
||||
+
|
||||
+test('criterion 2', () => {
|
||||
+ // README.md still names the licence of the dialogue benchmark it discusses.
|
||||
+ assert.strictEqual(text.includes('license'), true, 'README.md should name the licence of the dialogue benchmark it discusses.')
|
||||
+})
|
||||
1
events/0000000249.json
Normal file
1
events/0000000249.json
Normal file
@@ -0,0 +1 @@
|
||||
{"data":{"cites":[],"envelope":{"delegation":{"identity":"0xe0425bed061809c5ce17450fe47dc970090a0938","nonce":"1790923270","project":"0x0000000000000000000000000000000000000000000000000000000000000000","scopes":3,"sessionX":"0x965ee667b228d5242d2d86989eea6d4879c4ad1de748a7bcae861f2baff69398","sessionY":"0x4109e51c15fd0376e2f76a2b5cf293cdf9fb69f7ac1f617c13ddbb117fe34669","validFrom":"1790923270","validUntil":"1791528070"},"delegationSignature":"0x4322f7ca1df9e93982471f2e75c20c605df23e92aa5da74809aeaa8fc498579623912c8227ebe106c0529f958b988700ce2aa17a2667ef65de01df41d39cc5261c","kind":"session","signature":"0x404d087270903ab297ea4d8dc31eac6556e2aa80a0e40f4f2ed2e011b865eab040b6523a8577d519b5b869a52586ad2945bd070ea9be4c486ccd45c456ff853f"},"mainHead":null,"message":{"author":"0xe0425bed061809c5ce17450fe47dc970090a0938","baseCommit":"0x4dc1965d3112d6b45cea4d9cf10c2f1a7078cd5d","basePartial":"0x0000000000000000000000000000000000000000000000000000000000000000","citesHash":"0x0000000000000000000000000000000000000000000000000000000000000000","issueId":"0xc12661ad1e924639ee5738cfaa57a23385d5f9849451aac6efabf58a185daf6d","issuedAt":"1790924097","lines":0,"nonce":"1790924097000","patchHash":"0x19063f81d0cb928928aa774441c92081638748ef25c52cab14a58756bf4ecdef","project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xb599aedd619c8321892f96f0446029f00f5a12bf3043c65341bbf5afe98384ed"},"pr":"elffuss/core:item/0x3363be2c74a52f6cd9663b810306764e1ea2b75da651754d869f750ffe3dc3e7"},"eventHash":"0x61bbb9e25968f1588690cdb87469056c1dcb36e1eb6e0fc3f529cc672cbfb9b7","gatewaySignature":"0xcbd96b015c658bd8f677d037eb275de7564314436e57fbc77275275f07d9677d260a28bed6717ad020ce619fd1a67aa10421aa739a5d06072332c852fb709ffb1c","prev":"0xc58a4b64c53e183d306c3a022ae9fbbea5bf19f594323b49ef236b4beaabb919","seq":249,"ts":1790924098,"type":"solution","v":2}
|
||||
Reference in New Issue
Block a user