From 9ee7195d654de8e00aead3550e17d7bc1a65c7ce Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 14 Nov 2019 20:31:01 -0700 Subject: [PATCH] compare canonical paths in test --- t/app-codeowners-util.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/app-codeowners-util.t b/t/app-codeowners-util.t index 2edbcc7..d44b06f 100644 --- a/t/app-codeowners-util.t +++ b/t/app-codeowners-util.t @@ -44,10 +44,10 @@ subtest 'git_toplevel' => sub { my $repodir =_setup_git_repo(); my $r = App::Codeowners::Util::git_toplevel($repodir); - is($r, $repodir, 'found toplevel directory from toplevel'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory from toplevel'); $r = App::Codeowners::Util::git_toplevel($repodir->child('a/b')); - is($r, $repodir, 'found toplevel directory'); + is($r->canonpath, $repodir->canonpath, 'found toplevel directory'); }; subtest 'find_nearest_codeowners' => sub { -- 2.44.0