🇮🇷 Iran Proxy | https://www.wikipedia.org/wiki/Module_talk:CineMol/testcases
Jump to content

Module talk:CineMol/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Api

[edit]

All 24 tests passed.

test_draw_atoms_in_spacefilling_style

test_draw_atoms_in_spacefilling_style
Text Expected Actual
checkY nodes 4 4

test_draw_atoms_in_tube_style

test_draw_atoms_in_tube_style
Text Expected Actual
checkY nodes 0 0

test_draw_bonds_in_wireframe_style

test_draw_bonds_in_wireframe_style
Text Expected Actual
checkY nodes 6 6

test_draw_bonds_in_wireframe_style_without_supplying_bonds

test_draw_bonds_in_wireframe_style_without_supplying_bonds
Text Expected Actual
checkY nodes 0 0

test_draw_molecule_in_spacefilling_style

test_draw_molecule_in_spacefilling_style
Text Expected Actual
checkY objects 4 4
checkY fills 4 4

test_draw_molecule_in_spacefilling_style_glossy

test_draw_molecule_in_spacefilling_style_glossy
Text Expected Actual
checkY objects 4 4
checkY fills 4 4

test_draw_molecule_in_tube_style

test_draw_molecule_in_tube_style
Text Expected Actual
checkY objects 6 6
checkY fills 6 6

test_draw_molecule_in_wireframe_style

test_draw_molecule_in_wireframe_style
Text Expected Actual
checkY objects 6 6
checkY fills 6 6

test_draw_molecule_with_multi_colored_triple_bond_in_ball_and_stick_style

test_draw_molecule_with_multi_colored_triple_bond_in_ball_and_stick_style
Text Expected Actual
checkY objects 8 8
checkY fills 8 8

test_draw_molecule_with_single_and_triple_bonds_in_ball_and_stick_style

test_draw_molecule_with_single_and_triple_bonds_in_ball_and_stick_style
Text Expected Actual
checkY objects 11 11
checkY fills 11 11

test_draw_molecule_with_single_colored_triple_bond_in_ball_and_stick_style

test_draw_molecule_with_single_colored_triple_bond_in_ball_and_stick_style
Text Expected Actual
checkY objects 5 5
checkY fills 5 5

test_filter_atoms_and_bonds

test_filter_atoms_and_bonds
Text Expected Actual
checkY filtered atoms 4 4
checkY filtered bonds 3 3

test_filter_atoms_and_bonds_with_filtering

test_filter_atoms_and_bonds_with_filtering
Text Expected Actual
checkY filtered atoms 1 1
checkY filtered bonds 0 0

test_filter_atoms_and_bonds_with_filtering_out_all_atoms

test_filter_atoms_and_bonds_with_filtering_out_all_atoms
Text Expected Actual
checkY filtered atoms 0 0
checkY filtered bonds 0 0


fitting

[edit]

All 2 tests passed.

test_calculate_convex_hull_basic

test_calculate_convex_hull_basic
Text Expected Actual
checkY basic {1,4,3,2} {1,4,3,2}

test_calculate_convex_hull_including_centroid

test_calculate_convex_hull_including_centroid
Text Expected Actual
checkY basic {1,4,3,2} {1,4,3,2}


geometry

[edit]

All 454 tests passed.

test_GetPointsOnCircumferenceCircle3D

test_GetPointsOnCircumferenceCircle3D
Text Expected Actual
checkY number of points 10 10
checkY dist to radius 1 true true
checkY dist to radius 2 true true
checkY dist to radius 3 true true
checkY dist to radius 4 true true
checkY dist to radius 5 true true
checkY dist to radius 6 true true
checkY dist to radius 7 true true
checkY dist to radius 8 true true
checkY dist to radius 9 true true
checkY dist to radius 10 true true

test_GetPointsOnLine3D

test_GetPointsOnLine3D
Text Expected Actual
checkY number of lines returned 11 11
checkY distance start true true
checkY distance end true true
checkY distance to line 1 true true
checkY distance to line 2 true true
checkY distance to line 3 true true
checkY distance to line 4 true true
checkY distance to line 5 true true
checkY distance to line 6 true true
checkY distance to line 7 true true
checkY distance to line 8 true true
checkY distance to line 9 true true
checkY distance to line 10 true true
checkY distance to line 11 true true

test_GetPointsOnSurfaceCap

test_GetPointsOnSurfaceCap
Text Expected Actual
checkY point inside circle FLAT_CAP 1 true true
checkY FLAT CAP z=0 1 true true
checkY point inside circle FLAT_CAP 2 true true
checkY FLAT CAP z=0 2 true true
checkY point inside circle FLAT_CAP 3 true true
checkY FLAT CAP z=0 3 true true
checkY point inside circle FLAT_CAP 4 true true
checkY FLAT CAP z=0 4 true true
checkY point inside circle FLAT_CAP 5 true true
checkY FLAT CAP z=0 5 true true
checkY point inside circle FLAT_CAP 6 true true
checkY FLAT CAP z=0 6 true true
checkY point inside circle FLAT_CAP 7 true true
checkY FLAT CAP z=0 7 true true
checkY point inside circle FLAT_CAP 8 true true
checkY FLAT CAP z=0 8 true true
checkY point inside circle FLAT_CAP 9 true true
checkY FLAT CAP z=0 9 true true
checkY point inside circle FLAT_CAP 10 true true
checkY FLAT CAP z=0 10 true true
checkY point inside circle FLAT_CAP 1 true true
checkY ROUND CAP z=0 1 true true
checkY point inside circle FLAT_CAP 2 true true
checkY ROUND CAP z=0 2 true true
checkY point inside circle FLAT_CAP 3 true true
checkY ROUND CAP z=0 3 true true
checkY point inside circle FLAT_CAP 4 true true
checkY ROUND CAP z=0 4 true true
checkY point inside circle FLAT_CAP 5 true true
checkY ROUND CAP z=0 5 true true
checkY point inside circle FLAT_CAP 6 true true
checkY ROUND CAP z=0 6 true true
checkY point inside circle FLAT_CAP 7 true true
checkY ROUND CAP z=0 7 true true
checkY point inside circle FLAT_CAP 8 true true
checkY ROUND CAP z=0 8 true true
checkY point inside circle FLAT_CAP 9 true true
checkY ROUND CAP z=0 9 true true
checkY point inside circle FLAT_CAP 10 true true
checkY ROUND CAP z=0 10 true true
checkY point inside circle FLAT_CAP 11 true true
checkY ROUND CAP z=0 11 true true
checkY point inside circle FLAT_CAP 12 true true
checkY ROUND CAP z=0 12 true true
checkY point inside circle FLAT_CAP 13 true true
checkY ROUND CAP z=0 13 true true
checkY point inside circle FLAT_CAP 14 true true
checkY ROUND CAP z=0 14 true true
checkY point inside circle FLAT_CAP 15 true true
checkY ROUND CAP z=0 15 true true
checkY point inside circle FLAT_CAP 16 true true
checkY ROUND CAP z=0 16 true true
checkY point inside circle FLAT_CAP 17 true true
checkY ROUND CAP z=0 17 true true
checkY point inside circle FLAT_CAP 18 true true
checkY ROUND CAP z=0 18 true true
checkY point inside circle FLAT_CAP 19 true true
checkY ROUND CAP z=0 19 true true
checkY point inside circle FLAT_CAP 20 true true
checkY ROUND CAP z=0 20 true true
checkY point inside circle FLAT_CAP 21 true true
checkY ROUND CAP z=0 21 true true
checkY point inside circle FLAT_CAP 22 true true
checkY ROUND CAP z=0 22 true true
checkY point inside circle FLAT_CAP 23 true true
checkY ROUND CAP z=0 23 true true
checkY point inside circle FLAT_CAP 24 true true
checkY ROUND CAP z=0 24 true true
checkY point inside circle FLAT_CAP 25 true true
checkY ROUND CAP z=0 25 true true
checkY point inside circle FLAT_CAP 26 true true
checkY ROUND CAP z=0 26 true true
checkY point inside circle FLAT_CAP 27 true true
checkY ROUND CAP z=0 27 true true
checkY point inside circle FLAT_CAP 28 true true
checkY ROUND CAP z=0 28 true true
checkY point inside circle FLAT_CAP 29 true true
checkY ROUND CAP z=0 29 true true
checkY point inside circle FLAT_CAP 30 true true
checkY ROUND CAP z=0 30 true true
checkY point inside circle FLAT_CAP 31 true true
checkY ROUND CAP z=0 31 true true
checkY point inside circle FLAT_CAP 32 true true
checkY ROUND CAP z=0 32 true true
checkY point inside circle FLAT_CAP 33 true true
checkY ROUND CAP z=0 33 true true
checkY point inside circle FLAT_CAP 34 true true
checkY ROUND CAP z=0 34 true true
checkY point inside circle FLAT_CAP 35 true true
checkY ROUND CAP z=0 35 true true
checkY point inside circle FLAT_CAP 36 true true
checkY ROUND CAP z=0 36 true true
checkY point inside circle FLAT_CAP 37 true true
checkY ROUND CAP z=0 37 true true
checkY point inside circle FLAT_CAP 38 true true
checkY ROUND CAP z=0 38 true true
checkY point inside circle FLAT_CAP 39 true true
checkY ROUND CAP z=0 39 true true
checkY point inside circle FLAT_CAP 40 true true
checkY ROUND CAP z=0 40 true true
checkY point inside circle FLAT_CAP 41 true true
checkY ROUND CAP z=0 41 true true
checkY point inside circle FLAT_CAP 42 true true
checkY ROUND CAP z=0 42 true true
checkY point inside circle FLAT_CAP 43 true true
checkY ROUND CAP z=0 43 true true
checkY point inside circle FLAT_CAP 44 true true
checkY ROUND CAP z=0 44 true true
checkY point inside circle FLAT_CAP 45 true true
checkY ROUND CAP z=0 45 true true
checkY point inside circle FLAT_CAP 46 true true
checkY ROUND CAP z=0 46 true true
checkY point inside circle FLAT_CAP 47 true true
checkY ROUND CAP z=0 47 true true
checkY point inside circle FLAT_CAP 48 true true
checkY ROUND CAP z=0 48 true true
checkY point inside circle FLAT_CAP 49 true true
checkY ROUND CAP z=0 49 true true
checkY point inside circle FLAT_CAP 50 true true
checkY ROUND CAP z=0 50 true true
checkY point inside circle FLAT_CAP 51 true true
checkY ROUND CAP z=0 51 true true
checkY point inside circle FLAT_CAP 52 true true
checkY ROUND CAP z=0 52 true true
checkY point inside circle FLAT_CAP 53 true true
checkY ROUND CAP z=0 53 true true
checkY point inside circle FLAT_CAP 54 true true
checkY ROUND CAP z=0 54 true true
checkY point inside circle FLAT_CAP 55 true true
checkY ROUND CAP z=0 55 true true
checkY point inside circle FLAT_CAP 56 true true
checkY ROUND CAP z=0 56 true true
checkY point inside circle FLAT_CAP 57 true true
checkY ROUND CAP z=0 57 true true
checkY point inside circle FLAT_CAP 58 true true
checkY ROUND CAP z=0 58 true true
checkY point inside circle FLAT_CAP 59 true true
checkY ROUND CAP z=0 59 true true
checkY point inside circle FLAT_CAP 60 true true
checkY ROUND CAP z=0 60 true true
checkY point inside circle FLAT_CAP 61 true true
checkY ROUND CAP z=0 61 true true
checkY point inside circle FLAT_CAP 62 true true
checkY ROUND CAP z=0 62 true true
checkY point inside circle FLAT_CAP 63 true true
checkY ROUND CAP z=0 63 true true
checkY point inside circle FLAT_CAP 64 true true
checkY ROUND CAP z=0 64 true true
checkY point inside circle FLAT_CAP 65 true true
checkY ROUND CAP z=0 65 true true
checkY point inside circle FLAT_CAP 66 true true
checkY ROUND CAP z=0 66 true true
checkY NO_CAP numb points 0 0

test_GetPointsOnSurfaceCircle3D

test_GetPointsOnSurfaceCircle3D
Text Expected Actual
checkY number of pts 30 30
checkY point is inside circle 1 true true
checkY z is 0 - 1 true true
checkY point is inside circle 2 true true
checkY z is 0 - 2 true true
checkY point is inside circle 3 true true
checkY z is 0 - 3 true true
checkY point is inside circle 4 true true
checkY z is 0 - 4 true true
checkY point is inside circle 5 true true
checkY z is 0 - 5 true true
checkY point is inside circle 6 true true
checkY z is 0 - 6 true true
checkY point is inside circle 7 true true
checkY z is 0 - 7 true true
checkY point is inside circle 8 true true
checkY z is 0 - 8 true true
checkY point is inside circle 9 true true
checkY z is 0 - 9 true true
checkY point is inside circle 10 true true
checkY z is 0 - 10 true true
checkY point is inside circle 11 true true
checkY z is 0 - 11 true true
checkY point is inside circle 12 true true
checkY z is 0 - 12 true true
checkY point is inside circle 13 true true
checkY z is 0 - 13 true true
checkY point is inside circle 14 true true
checkY z is 0 - 14 true true
checkY point is inside circle 15 true true
checkY z is 0 - 15 true true
checkY point is inside circle 16 true true
checkY z is 0 - 16 true true
checkY point is inside circle 17 true true
checkY z is 0 - 17 true true
checkY point is inside circle 18 true true
checkY z is 0 - 18 true true
checkY point is inside circle 19 true true
checkY z is 0 - 19 true true
checkY point is inside circle 20 true true
checkY z is 0 - 20 true true
checkY point is inside circle 21 true true
checkY z is 0 - 21 true true
checkY point is inside circle 22 true true
checkY z is 0 - 22 true true
checkY point is inside circle 23 true true
checkY z is 0 - 23 true true
checkY point is inside circle 24 true true
checkY z is 0 - 24 true true
checkY point is inside circle 25 true true
checkY z is 0 - 25 true true
checkY point is inside circle 26 true true
checkY z is 0 - 26 true true
checkY point is inside circle 27 true true
checkY z is 0 - 27 true true
checkY point is inside circle 28 true true
checkY z is 0 - 28 true true
checkY point is inside circle 29 true true
checkY z is 0 - 29 true true
checkY point is inside circle 30 true true
checkY z is 0 - 30 true true

test_GramSchmidt

test_GramSchmidt
Text Expected Actual
checkY n not null table table
checkY v not null table table
checkY w not null table table
checkY w is Vector3D Vector3D Vector3D
checkY AlmostEquals 0 true true
checkY AlmostEquals 0 true true

test_cylinder_intersects_with_cylinder

test_cylinder_intersects_with_cylinder
Text Expected Actual
checkY intersects true true
checkY not intersects false false

test_distance_to_line

test_distance_to_line
Text Expected Actual
checkY is zero true true
checkY not zero true true

test_point_is_inside_cylinder

test_point_is_inside_cylinder
Text Expected Actual
checkY inside true true
checkY outside false false

test_point_is_inside_sphere_inside

test_point_is_inside_sphere_inside
Text Expected Actual
checkY inside sphere true true
checkY outside sphere false false

test_points_on_surface_cylinder_returns_points_on_surface

test_points_on_surface_cylinder_returns_points_on_surface
Text Expected Actual
checkY point in radius 1 true true
checkY point in radius 2 true true
checkY point in radius 3 true true
checkY point in radius 4 true true
checkY point in radius 5 true true
checkY point in radius 6 true true
checkY point in radius 7 true true
checkY point in radius 8 true true
checkY point in radius 9 true true
checkY point in radius 10 true true
checkY point in radius 11 true true
checkY point in radius 12 true true
checkY point in radius 13 true true
checkY point in radius 14 true true
checkY point in radius 15 true true
checkY point in radius 16 true true
checkY point in radius 17 true true
checkY point in radius 18 true true
checkY point in radius 19 true true
checkY point in radius 20 true true
checkY point in radius 21 true true
checkY point in radius 22 true true
checkY point in radius 23 true true
checkY point in radius 24 true true
checkY point in radius 25 true true
checkY point in radius 26 true true
checkY point in radius 27 true true
checkY point in radius 28 true true
checkY point in radius 29 true true
checkY point in radius 30 true true
checkY point in radius 31 true true
checkY point in radius 32 true true
checkY point in radius 33 true true
checkY point in radius 34 true true
checkY point in radius 35 true true
checkY point in radius 36 true true
checkY point in radius 37 true true
checkY point in radius 38 true true
checkY point in radius 39 true true
checkY point in radius 40 true true
checkY point in radius 41 true true
checkY point in radius 42 true true
checkY point in radius 43 true true
checkY point in radius 44 true true
checkY point in radius 45 true true
checkY point in radius 46 true true
checkY point in radius 47 true true
checkY point in radius 48 true true
checkY point in radius 49 true true
checkY point in radius 50 true true
checkY point in radius 51 true true
checkY point in radius 52 true true
checkY point in radius 53 true true
checkY point in radius 54 true true
checkY point in radius 55 true true
checkY point in radius 56 true true
checkY point in radius 57 true true
checkY point in radius 58 true true
checkY point in radius 59 true true
checkY point in radius 60 true true
checkY point in radius 61 true true
checkY point in radius 62 true true
checkY point in radius 63 true true
checkY point in radius 64 true true
checkY point in radius 65 true true
checkY point in radius 66 true true
checkY point in radius 67 true true
checkY point in radius 68 true true
checkY point in radius 69 true true
checkY point in radius 70 true true
checkY point in radius 71 true true
checkY point in radius 72 true true
checkY point in radius 73 true true
checkY point in radius 74 true true
checkY point in radius 75 true true
checkY point in radius 76 true true
checkY point in radius 77 true true
checkY point in radius 78 true true
checkY point in radius 79 true true
checkY point in radius 80 true true
checkY point in radius 81 true true
checkY point in radius 82 true true
checkY point in radius 83 true true
checkY point in radius 84 true true
checkY point in radius 85 true true
checkY point in radius 86 true true
checkY point in radius 87 true true
checkY point in radius 88 true true
checkY point in radius 89 true true
checkY point in radius 90 true true
checkY point in radius 91 true true
checkY point in radius 92 true true
checkY point in radius 93 true true
checkY point in radius 94 true true
checkY point in radius 95 true true
checkY point in radius 96 true true
checkY point in radius 97 true true
checkY point in radius 98 true true
checkY point in radius 99 true true
checkY point in radius 100 true true
checkY point in radius 101 true true
checkY point in radius 102 true true
checkY point in radius 103 true true
checkY point in radius 104 true true
checkY point in radius 105 true true
checkY point in radius 106 true true
checkY point in radius 107 true true
checkY point in radius 108 true true
checkY point in radius 109 true true
checkY point in radius 110 true true

test_points_on_surface_sphere_returns_points_on_surface

test_points_on_surface_sphere_returns_points_on_surface
Text Expected Actual
checkY point 1 true true
checkY point 2 true true
checkY point 3 true true
checkY point 4 true true
checkY point 5 true true
checkY point 6 true true
checkY point 7 true true
checkY point 8 true true
checkY point 9 true true
checkY point 10 true true
checkY point 11 true true
checkY point 12 true true
checkY point 13 true true
checkY point 14 true true
checkY point 15 true true
checkY point 16 true true
checkY point 17 true true
checkY point 18 true true
checkY point 19 true true
checkY point 20 true true
checkY point 21 true true
checkY point 22 true true
checkY point 23 true true
checkY point 24 true true
checkY point 25 true true
checkY point 26 true true
checkY point 27 true true
checkY point 28 true true
checkY point 29 true true
checkY point 30 true true
checkY point 31 true true
checkY point 32 true true
checkY point 33 true true
checkY point 34 true true
checkY point 35 true true
checkY point 36 true true
checkY point 37 true true
checkY point 38 true true
checkY point 39 true true
checkY point 40 true true
checkY point 41 true true
checkY point 42 true true
checkY point 43 true true
checkY point 44 true true
checkY point 45 true true
checkY point 46 true true
checkY point 47 true true
checkY point 48 true true
checkY point 49 true true
checkY point 50 true true
checkY point 51 true true
checkY point 52 true true
checkY point 53 true true
checkY point 54 true true
checkY point 55 true true
checkY point 56 true true
checkY point 57 true true
checkY point 58 true true
checkY point 59 true true
checkY point 60 true true
checkY point 61 true true
checkY point 62 true true
checkY point 63 true true
checkY point 64 true true
checkY point 65 true true
checkY point 66 true true

test_random_vector3d

test_random_vector3d
Text Expected Actual
checkY vector x true true
checkY vector y true true
checkY vector z true true

test_same_side_of_plane_opposite_side

test_same_side_of_plane_opposite_side
Text Expected Actual
checkY same_side false false

test_same_side_of_plane_same_side

test_same_side_of_plane_same_side
Text Expected Actual
checkY same_side true true

test_sphere_intersects_with_cylinder

test_sphere_intersects_with_cylinder
Text Expected Actual
checkY intersects true true
checkY not intersects false false

test_sphere_intersects_with_sphere

test_sphere_intersects_with_sphere
Text Expected Actual
checkY intersects true true
checkY not intersects false false

test_three_perpendicular_lines

test_three_perpendicular_lines
Text Expected Actual
checkY 1.start 2.start true true
checkY 1.end 2.end true true
checkY 2.start 3.start true true
checkY 2.end 3.end true true
checkY start1 start3 true true
checkY end.1 end.3 true true
checkY 1.start line.start true true
checkY 1.end line.end true true
checkY 3.start line.start true true
checkY 3.end line.end true true
checkY 2.start line.start true true
checkY 2.end line.end true true

test_vector3d_creation

test_vector3d_creation
Text Expected Actual
checkY vector x 1 1
checkY vector y 2 2
checkY vector z 3 3

test_vector3d_length

test_vector3d_length
Text Expected Actual
checkY length true true


parsers

[edit]

All 10 tests passed.

test_parse_sdf_with_multiple_mols

test_parse_sdf_with_multiple_mols
Text Expected Actual
checkY len(atoms) 41 41
checkY len(bonds) 43 43

test_parse_sdf_with_one_mol_above_100_atoms_without_end_line

test_parse_sdf_with_one_mol_above_100_atoms_without_end_line
Text Expected Actual
checkY len(atoms) 100 100
checkY len(bonds) 109 109

test_parse_sdf_with_one_mol_below_100_atoms_excluding_hs

test_parse_sdf_with_one_mol_below_100_atoms_excluding_hs
Text Expected Actual
checkY len(atoms) 23 23
checkY len(bonds) 25 25

test_parse_sdf_with_one_mol_below_100_atoms_with_end_line

test_parse_sdf_with_one_mol_below_100_atoms_with_end_line
Text Expected Actual
checkY len(atoms) 41 41
checkY len(bonds) 43 43

test_parse_sdf_with_one_mol_below_100_atoms_without_end_line

test_parse_sdf_with_one_mol_below_100_atoms_without_end_line
Text Expected Actual
checkY len(atoms) 41 41
checkY len(bonds) 43 43