Skip to content

Commit

Permalink
spec: Fix import paths in specs
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Jan 9, 2024
1 parent 7fa8926 commit 07c0d7b
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Specs/Quint/specs/driver.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
*/

module driver {
import extraSpells.* from "./extraSpells"
import extraSpells.* from "../spells/extra"
import types.* from "./types"
import consensus.* from "./consensus"
import voteBookkeeper.* from "./voteBookkeeper"
import voteBookkeeper.* from "./votekeeper"

// *************************************************************************
// State
Expand Down
2 changes: 1 addition & 1 deletion Specs/Quint/specs/statemachineAsync.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import driver.* from "./driver"
export driver.*
import consensus.* from "./consensus"
export consensus.*
import voteBookkeeper.* from "./voteBookkeeper"
import voteBookkeeper.* from "./votekeeper"

const validators: Set[Address]
const validatorSet: Address -> Weight
Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/specs/votekeeper.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module voteBookkeeper {

import types.* from "./types"
import basicSpells.* from "./basicSpells"
import extraSpells.* from "./extraSpells"
import basicSpells.* from "../spells/basic"
import extraSpells.* from "../spells/extra"

// ****************************************************************************
// Types
Expand Down
2 changes: 1 addition & 1 deletion Specs/Quint/spells/extra.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
module extraSpells {

import basicSpells.* from "./basicSpells"
import basicSpells.* from "./basic"

pure def printVariable(name: str, variable: a): bool = true

Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/tests/consensus/consensusTest.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module consensusTest {

import types.* from "./types"
import consensus.* from "./consensus"
import types.* from "../../specs/types"
import consensus.* from "../../specs/consensus"

// *************************************************************************
// Consensus state machine
Expand Down
2 changes: 1 addition & 1 deletion Specs/Quint/tests/disagreement/disagreementRun.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module disagreementRun {

import TendermintDSL.* from "./TendermintDSL"
import TendermintDSL.* from "../../specs/TendermintDSL"
export TendermintDSL.*

const groupA : Set[Address]
Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/tests/line28/line28run.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module line28run {

import TendermintDSL.* from "./TendermintDSL"
import TendermintDSL.* from "../../specs/TendermintDSL"
export TendermintDSL.*

const otherSet: Set[Address]
Expand Down Expand Up @@ -36,4 +36,4 @@ run runToLine28 =
unchangedAll
})

}
}
2 changes: 1 addition & 1 deletion Specs/Quint/tests/line42/line42run.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module line42run {

import TendermintDSL.* from "./TendermintDSL"
import TendermintDSL.* from "../../specs/TendermintDSL"
export TendermintDSL.*

const testedVal : Address
Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/tests/multi-round/someMultiRoundRuns.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module someMultiRoundRuns {

import TendermintDSL.* from "./TendermintDSL"
import TendermintDSL.* from "../../specs/TendermintDSL"
export TendermintDSL.*

const slow : Address
Expand Down Expand Up @@ -104,4 +104,4 @@ run RoundswitchRun = {



}
}
8 changes: 4 additions & 4 deletions Specs/Quint/tests/state-machine/parameterizedTest.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

module parameterizedTest {

import types.* from "./types"
import extraSpells.* from "./extraSpells"
import types.* from "../../specs/types"
import extraSpells.* from "./../spells/extra"
import statemachineAsync(
validators = Set("v1", "v2", "v3", "v4"),
validatorSet = Set("v1", "v2", "v3", "v4").mapBy(x => 1),
Faulty = Set(),
Values = Set("a", "b"),
Rounds = Set(0, 1, 2, 3),
Heights = Set(0) // , 1, 2, 3)
) as N4F0 from "./statemachineAsync"
) as N4F0 from "../../specs/statemachineAsync"

val validatorList = N4F0::validators.fold(List(), (s, x) => s.append(x))

Expand Down Expand Up @@ -96,4 +96,4 @@ run multiRoundTest = {



}
}
10 changes: 5 additions & 5 deletions Specs/Quint/tests/state-machine/statemachineTest.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

module statemachineTest {

import types.* from "./types"
import extraSpells.* from "./extraSpells"
import driver.* from "./driver"
import consensus.* from "./consensus"
import voteBookkeeper.* from "./voteBookkeeper"
import types.* from "../../specs/types"
import extraSpells.* from "../../spells/extra"
import driver.* from "../../specs/driver"
import consensus.* from "../../specs/consensus"
import voteBookkeeper.* from "../../votekeeper"

val validators = Set("v1", "v2", "v3", "v4")
val validatorSet = validators.mapBy(x => 1)
Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/tests/votekeeper/voteBookkeeperModels.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

module voteBookkeeperSM {

import types.* from "./types"
import voteBookkeeper.* from "./voteBookkeeper"
import types.* from "../../specs/types"
import voteBookkeeper.* from "../../specs/votekeeper"
export voteBookkeeper.*

// ************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions Specs/Quint/tests/votekeeper/voteBookkeeperTest.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module voteBookkeeperTest {

import types.* from "./types"
import voteBookkeeper.* from "./voteBookkeeper"
import types.* from "../../specs/types"
import voteBookkeeper.* from "../../specs/votekeeper"

// ****************************************************************************
// Tests
Expand Down

0 comments on commit 07c0d7b

Please sign in to comment.