Download t/Shutter/Draw/005_utils.t from abr00kx/shutter: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/abr00kx/shutter/resolve/main/t/Shutter/Draw/005_utils.t
- Command line
-
hf download hf://abr00kx/shutter/t/Shutter/Draw/005_utils.t
-
curl -L -o 005_utils.t https://huggingface.co/abr00kx/shutter/resolve/main/t/Shutter/Draw/005_utils.t
559 Bytes
| use 5.010; | |
| use strict; | |
| use warnings; | |
| use Gtk3; # to escape warnings "Too late to run INIT block" | |
| use Test::More; | |
| use_ok("Shutter::Draw::Utils"); | |
| subtest "points_to_canvas_points" => sub { | |
| can_ok( "Shutter::Draw::Utils", "points_to_canvas_points" ); | |
| my @points = qw/116.295135498047 146.150695800781 463.101501464844 458.543548583984/; | |
| my $res = Shutter::Draw::Utils::points_to_canvas_points(@points); | |
| ok( defined $res, "There's a result of points_to_canvas_points" ); | |
| isa_ok( $res, "GooCanvas2::CanvasPoints" ); | |
| }; | |
| done_testing; | |