Skip to content

Commit

Permalink
eq_version -> exactly_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakuyume committed Oct 16, 2018
1 parent 590088b commit 337c65c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ impl Config {
}

/// Indicate that the library must be equal to version `vers`.
pub fn eq_version(&mut self, vers: &str) -> &mut Config {
pub fn exactly_version(&mut self, vers: &str) -> &mut Config {
self.min_version = Bound::Included(vers.to_string());
self.max_version = Bound::Included(vers.to_string());
self
Expand Down
8 changes: 4 additions & 4 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,18 @@ fn atleast_version_ng() {
}

#[test]
fn eq_version_ok() {
fn exactly_version_ok() {
let _g = LOCK.lock();
reset();
pkg_config::Config::new().eq_version("3.10.0.SVN").probe("foo").unwrap();
pkg_config::Config::new().exactly_version("3.10.0.SVN").probe("foo").unwrap();
}

#[test]
#[should_panic]
fn eq_version_ng() {
fn exactly_version_ng() {
let _g = LOCK.lock();
reset();
pkg_config::Config::new().eq_version("3.10.0").probe("foo").unwrap();
pkg_config::Config::new().exactly_version("3.10.0").probe("foo").unwrap();
}

#[test]
Expand Down

0 comments on commit 337c65c

Please sign in to comment.