本文整理汇总了Golang中github.com/stretchr/testify/assert.Assertions.NotEqual方法的典型用法代码示例。如果您正苦于以下问题:Golang Assertions.NotEqual方法的具体用法?Golang Assertions.NotEqual怎么用?Golang Assertions.NotEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/stretchr/testify/assert.Assertions
的用法示例。
在下文中一共展示了Assertions.NotEqual方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: VerifyDeserializedBoard
func VerifyDeserializedBoard(b *Board, assert *assert.Assertions) {
assert.Equal(4, len(b.Segments))
assert.Equal(4*7, len(b.Points))
pos := Position{X: 6, Y: 6}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(false, b.Points[pos].IsDead)
assert.Equal(0, b.Points[pos].Tower.Player)
assert.Equal(1, b.Points[pos].Tower.Height)
assert.Equal(false, b.Points[pos].Tower.IsGrowingPoint)
pos = Position{X: 7, Y: 7}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(false, b.Points[pos].IsDead)
assert.Equal(0, b.Points[pos].Tower.Player)
assert.Equal(2, b.Points[pos].Tower.Height)
assert.Equal(true, b.Points[pos].Tower.IsGrowingPoint)
pos = Position{X: 10, Y: 5}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(false, b.Points[pos].IsDead)
assert.Equal(1, b.Points[pos].Tower.Player)
assert.Equal(1, b.Points[pos].Tower.Height)
assert.Equal(false, b.Points[pos].Tower.IsGrowingPoint)
pos = Position{X: 11, Y: 6}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(false, b.Points[pos].IsDead)
assert.Equal(1, b.Points[pos].Tower.Player)
assert.Equal(2, b.Points[pos].Tower.Height)
assert.Equal(true, b.Points[pos].Tower.IsGrowingPoint)
pos = Position{X: 8, Y: 5}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(true, b.Points[pos].IsDead)
pos = Position{X: 10, Y: 8}
assert.Equal(pos, b.Points[pos].Position)
assert.Equal(true, b.Points[pos].IsDead)
assert.NotEqual("", b.DebugString())
}