Skip to content

Commit

Permalink
remove extent-intent.test add isExtent.test and isIntent.test
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Jul 6, 2024
1 parent f303423 commit c34926f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
3 changes: 1 addition & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# context

`conceptFormat`
`generateConcepts` test

# lattice
Expand Down
13 changes: 13 additions & 0 deletions src/concept/isExtent.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import assert from "node:assert"
import test from "node:test"
import { createContextFromCrossTable } from "../context/createContextFromCrossTable.js"
import { planets } from "../examples/planets.js"
import { isExtent } from "./isExtent.js"
import { isIntent } from "./isIntent.js"

test("isExtent", () => {
const context = createContextFromCrossTable(planets)

assert(!isExtent(context, ["earth"]))
assert(isExtent(context, ["earth", "mars"]))
})
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import { planets } from "../examples/planets.js"
import { isExtent } from "./isExtent.js"
import { isIntent } from "./isIntent.js"

test("isExtent", () => {
const context = createContextFromCrossTable(planets)

assert(!isExtent(context, ["earth"]))
assert(isExtent(context, ["earth", "mars"]))
})

test("isIntent", () => {
const context = createContextFromCrossTable(planets)
Expand Down
6 changes: 6 additions & 0 deletions src/context/generateConcepts.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import test from "node:test"
import { generateConcepts } from "./generateConcepts.js"

test("generateConcepts", () => {
generateConcepts
})

0 comments on commit c34926f

Please sign in to comment.