mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
20 lines
502 B
Go
20 lines
502 B
Go
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
package pilosa
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test_TxFactory_verifyStringConstantsMatch(t *testing.T) {
|
|
// txtype.String() method MUST return strings that match
|
|
// our const definitions at the top of txfactory.go.
|
|
check := []txtype{rbfTxn}
|
|
expect := []string{RBFTxn}
|
|
for i, chk := range check {
|
|
obs := chk.String()
|
|
if obs != expect[i] {
|
|
t.Fatalf("expected '%v' but got '%v'", expect[i], obs)
|
|
}
|
|
}
|
|
}
|