From: Peter Rabbitson Date: Mon, 3 May 2010 16:31:19 +0000 (+0000) Subject: Fix incorrect comparison X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0f72fb470be604ed2ab11a7d172b2657c3410385;p=dbsrgits%2FDBIx-Class-Historic.git Fix incorrect comparison --- diff --git a/t/inflate/datetime_mssql.t b/t/inflate/datetime_mssql.t index c1ce5dd..25524de 100644 --- a/t/inflate/datetime_mssql.t +++ b/t/inflate/datetime_mssql.t @@ -95,8 +95,8 @@ SQL ->first ); is( $row->$col, $dt, "$type roundtrip" ); - - is( $row->$col->nanosecond, $sample_dt->{nanosecond}, + + cmp_ok( $row->$col->nanosecond, '==', $sample_dt->{nanosecond}, 'DateTime fractional portion roundtrip' ) if exists $sample_dt->{nanosecond}; }