Skip to content

Commit

Permalink
Remove pointless bit of test
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Apr 15, 2024
1 parent 98c75a2 commit 88cd17e
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions hugr/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ pub(crate) fn check_typevar_decl(
#[cfg(test)]
pub(crate) mod test {
use super::*;
use crate::extension::PRELUDE;
use crate::{const_extension_ids, Extension};
use crate::const_extension_ids;
use crate::{extension::prelude::USIZE_T, ops::AliasDecl};

use crate::types::TypeBound;
Expand All @@ -531,17 +530,6 @@ pub(crate) mod test {
&t.to_string(),
"[usize, Function([[]][]), my_custom, Alias(my_alias)]"
);

let mut ext = Extension::new(MY_EXT);
ext.add_type(
"my_custom".into(),
vec![],
"".into(),
TypeBound::Copyable.into(),
)
.unwrap();
let reg = ExtensionRegistry::try_new([PRELUDE.to_owned(), ext]).unwrap();
t.validate(&reg, &[]).unwrap()
}

#[test]
Expand Down

0 comments on commit 88cd17e

Please sign in to comment.