Unverified Commit 5a296fd6 authored by dwuggh's avatar dwuggh
Browse files

fix test

parent d9d37eb3
......@@ -369,20 +369,20 @@ mod tests {
let mut model = SurfaceCodeModel::new(5, 5, &error_model, SurfModelClass::Surf1);
{
let data = &mut model.state.datas;
data[22] = BIT_Z;
data[11] = BIT_Z;
data[33] = BIT_Z;
data[22] = BIT_X;
data[11] = BIT_X;
data[33] = BIT_X;
}
assert_eq!(model.has_logical_error(), Some(Stabilizer::Z));
assert_eq!(model._has_logical_error(Stabilizer::Z), Some(Stabilizer::Z));
{
let data = &mut model.state.datas;
data[1] = BIT_X;
data[1] = BIT_Z;
data[0] = 0;
data[11] = 0;
data[33] = 0;
}
assert_eq!(model.has_logical_error(), Some(Stabilizer::X));
assert_eq!(model._has_logical_error(Stabilizer::X), Some(Stabilizer::X));
}
#[test]
......@@ -394,8 +394,8 @@ mod tests {
let mut model = SurfaceCodeModel::new(5, 5, &error_model, SurfModelClass::Surf1);
{
let data = &mut model.state.datas;
data[0] = BIT_Z;
data[1] = BIT_Z;
data[0] = BIT_X;
data[1] = BIT_X;
}
model.update_measures_perfect();
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment