Module talk:CineMol/testcases
Add topicAppearance
Api
[edit]All 24 tests passed.
test_filter_atoms_and_bonds
| Test | Expected | Actual | |
|---|---|---|---|
| filtered atoms | 4 | 4 | |
| filtered bonds | 3 | 3 |
test_filter_atoms_and_bonds_with_filtering
| Test | Expected | Actual | |
|---|---|---|---|
| filtered atoms | 1 | 1 | |
| filtered bonds | 0 | 0 |
test_filter_atoms_and_bonds_with_filtering_out_all_atoms
| Test | Expected | Actual | |
|---|---|---|---|
| filtered atoms | 0 | 0 | |
| filtered bonds | 0 | 0 |
test_draw_bonds_in_wireframe_style_without_supplying_bonds
| Test | Expected | Actual | |
|---|---|---|---|
| nodes | 0 | 0 |
test_draw_bonds_in_wireframe_style
| Test | Expected | Actual | |
|---|---|---|---|
| nodes | 6 | 6 |
test_draw_atoms_in_spacefilling_style
| Test | Expected | Actual | |
|---|---|---|---|
| nodes | 4 | 4 |
test_draw_atoms_in_tube_style
| Test | Expected | Actual | |
|---|---|---|---|
| nodes | 0 | 0 |
test_draw_molecule_in_spacefilling_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 4 | 4 | |
| fills | 4 | 4 |
test_draw_molecule_in_spacefilling_style_glossy
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 4 | 4 | |
| fills | 4 | 4 |
test_draw_molecule_in_tube_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 6 | 6 | |
| fills | 6 | 6 |
test_draw_molecule_in_wireframe_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 6 | 6 | |
| fills | 6 | 6 |
test_draw_molecule_with_single_colored_triple_bond_in_ball_and_stick_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 5 | 5 | |
| fills | 5 | 5 |
test_draw_molecule_with_multi_colored_triple_bond_in_ball_and_stick_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 8 | 8 | |
| fills | 8 | 8 |
test_draw_molecule_with_single_and_triple_bonds_in_ball_and_stick_style
| Test | Expected | Actual | |
|---|---|---|---|
| objects | 11 | 11 | |
| fills | 11 | 11 |
fitting
[edit]All 2 tests passed.
test_calculate_convex_hull_basic
| Test | Expected | Actual | |
|---|---|---|---|
| basic | {1,4,3,2} | {1,4,3,2} |
test_calculate_convex_hull_including_centroid
| Test | Expected | Actual | |
|---|---|---|---|
| basic | {1,4,3,2} | {1,4,3,2} |
geometry
[edit]All 454 tests passed.
test_vector3d_creation
| Test | Expected | Actual | |
|---|---|---|---|
| vector x | 1 | 1 | |
| vector y | 2 | 2 | |
| vector z | 3 | 3 |
test_random_vector3d
| Test | Expected | Actual | |
|---|---|---|---|
| vector x | true | true | |
| vector y | true | true | |
| vector z | true | true |
test_vector3d_length
| Test | Expected | Actual | |
|---|---|---|---|
| length | true | true |
test_GramSchmidt
| Test | Expected | Actual | |
|---|---|---|---|
| n not null | table | table | |
| v not null | table | table | |
| w not null | table | table | |
| w is Vector3D | Vector3D | Vector3D | |
| AlmostEquals 0 | true | true | |
| AlmostEquals 0 | true | true |
test_same_side_of_plane_same_side
| Test | Expected | Actual | |
|---|---|---|---|
| same_side | true | true |
test_same_side_of_plane_opposite_side
| Test | Expected | Actual | |
|---|---|---|---|
| same_side | false | false |
test_distance_to_line
| Test | Expected | Actual | |
|---|---|---|---|
| is zero | true | true | |
| not zero | true | true |
test_three_perpendicular_lines
| Test | Expected | Actual | |
|---|---|---|---|
| 1.start 2.start | true | true | |
| 1.end 2.end | true | true | |
| 2.start 3.start | true | true | |
| 2.end 3.end | true | true | |
| start1 start3 | true | true | |
| end.1 end.3 | true | true | |
| 1.start line.start | true | true | |
| 1.end line.end | true | true | |
| 3.start line.start | true | true | |
| 3.end line.end | true | true | |
| 2.start line.start | true | true | |
| 2.end line.end | true | true |
test_GetPointsOnLine3D
| Test | Expected | Actual | |
|---|---|---|---|
| number of lines returned | 11 | 11 | |
| distance start | true | true | |
| distance end | true | true | |
| distance to line 1 | true | true | |
| distance to line 2 | true | true | |
| distance to line 3 | true | true | |
| distance to line 4 | true | true | |
| distance to line 5 | true | true | |
| distance to line 6 | true | true | |
| distance to line 7 | true | true | |
| distance to line 8 | true | true | |
| distance to line 9 | true | true | |
| distance to line 10 | true | true | |
| distance to line 11 | true | true |
test_GetPointsOnCircumferenceCircle3D
| Test | Expected | Actual | |
|---|---|---|---|
| number of points | 10 | 10 | |
| dist to radius 1 | true | true | |
| dist to radius 2 | true | true | |
| dist to radius 3 | true | true | |
| dist to radius 4 | true | true | |
| dist to radius 5 | true | true | |
| dist to radius 6 | true | true | |
| dist to radius 7 | true | true | |
| dist to radius 8 | true | true | |
| dist to radius 9 | true | true | |
| dist to radius 10 | true | true |
test_GetPointsOnSurfaceCircle3D
| Test | Expected | Actual | |
|---|---|---|---|
| number of pts | 30 | 30 | |
| point is inside circle 1 | true | true | |
| z is 0 - 1 | true | true | |
| point is inside circle 2 | true | true | |
| z is 0 - 2 | true | true | |
| point is inside circle 3 | true | true | |
| z is 0 - 3 | true | true | |
| point is inside circle 4 | true | true | |
| z is 0 - 4 | true | true | |
| point is inside circle 5 | true | true | |
| z is 0 - 5 | true | true | |
| point is inside circle 6 | true | true | |
| z is 0 - 6 | true | true | |
| point is inside circle 7 | true | true | |
| z is 0 - 7 | true | true | |
| point is inside circle 8 | true | true | |
| z is 0 - 8 | true | true | |
| point is inside circle 9 | true | true | |
| z is 0 - 9 | true | true | |
| point is inside circle 10 | true | true | |
| z is 0 - 10 | true | true | |
| point is inside circle 11 | true | true | |
| z is 0 - 11 | true | true | |
| point is inside circle 12 | true | true | |
| z is 0 - 12 | true | true | |
| point is inside circle 13 | true | true | |
| z is 0 - 13 | true | true | |
| point is inside circle 14 | true | true | |
| z is 0 - 14 | true | true | |
| point is inside circle 15 | true | true | |
| z is 0 - 15 | true | true | |
| point is inside circle 16 | true | true | |
| z is 0 - 16 | true | true | |
| point is inside circle 17 | true | true | |
| z is 0 - 17 | true | true | |
| point is inside circle 18 | true | true | |
| z is 0 - 18 | true | true | |
| point is inside circle 19 | true | true | |
| z is 0 - 19 | true | true | |
| point is inside circle 20 | true | true | |
| z is 0 - 20 | true | true | |
| point is inside circle 21 | true | true | |
| z is 0 - 21 | true | true | |
| point is inside circle 22 | true | true | |
| z is 0 - 22 | true | true | |
| point is inside circle 23 | true | true | |
| z is 0 - 23 | true | true | |
| point is inside circle 24 | true | true | |
| z is 0 - 24 | true | true | |
| point is inside circle 25 | true | true | |
| z is 0 - 25 | true | true | |
| point is inside circle 26 | true | true | |
| z is 0 - 26 | true | true | |
| point is inside circle 27 | true | true | |
| z is 0 - 27 | true | true | |
| point is inside circle 28 | true | true | |
| z is 0 - 28 | true | true | |
| point is inside circle 29 | true | true | |
| z is 0 - 29 | true | true | |
| point is inside circle 30 | true | true | |
| z is 0 - 30 | true | true |
test_GetPointsOnSurfaceCap
| Test | Expected | Actual | |
|---|---|---|---|
| point inside circle FLAT_CAP 1 | true | true | |
| FLAT CAP z=0 1 | true | true | |
| point inside circle FLAT_CAP 2 | true | true | |
| FLAT CAP z=0 2 | true | true | |
| point inside circle FLAT_CAP 3 | true | true | |
| FLAT CAP z=0 3 | true | true | |
| point inside circle FLAT_CAP 4 | true | true | |
| FLAT CAP z=0 4 | true | true | |
| point inside circle FLAT_CAP 5 | true | true | |
| FLAT CAP z=0 5 | true | true | |
| point inside circle FLAT_CAP 6 | true | true | |
| FLAT CAP z=0 6 | true | true | |
| point inside circle FLAT_CAP 7 | true | true | |
| FLAT CAP z=0 7 | true | true | |
| point inside circle FLAT_CAP 8 | true | true | |
| FLAT CAP z=0 8 | true | true | |
| point inside circle FLAT_CAP 9 | true | true | |
| FLAT CAP z=0 9 | true | true | |
| point inside circle FLAT_CAP 10 | true | true | |
| FLAT CAP z=0 10 | true | true | |
| point inside circle FLAT_CAP 1 | true | true | |
| ROUND CAP z=0 1 | true | true | |
| point inside circle FLAT_CAP 2 | true | true | |
| ROUND CAP z=0 2 | true | true | |
| point inside circle FLAT_CAP 3 | true | true | |
| ROUND CAP z=0 3 | true | true | |
| point inside circle FLAT_CAP 4 | true | true | |
| ROUND CAP z=0 4 | true | true | |
| point inside circle FLAT_CAP 5 | true | true | |
| ROUND CAP z=0 5 | true | true | |
| point inside circle FLAT_CAP 6 | true | true | |
| ROUND CAP z=0 6 | true | true | |
| point inside circle FLAT_CAP 7 | true | true | |
| ROUND CAP z=0 7 | true | true | |
| point inside circle FLAT_CAP 8 | true | true | |
| ROUND CAP z=0 8 | true | true | |
| point inside circle FLAT_CAP 9 | true | true | |
| ROUND CAP z=0 9 | true | true | |
| point inside circle FLAT_CAP 10 | true | true | |
| ROUND CAP z=0 10 | true | true | |
| point inside circle FLAT_CAP 11 | true | true | |
| ROUND CAP z=0 11 | true | true | |
| point inside circle FLAT_CAP 12 | true | true | |
| ROUND CAP z=0 12 | true | true | |
| point inside circle FLAT_CAP 13 | true | true | |
| ROUND CAP z=0 13 | true | true | |
| point inside circle FLAT_CAP 14 | true | true | |
| ROUND CAP z=0 14 | true | true | |
| point inside circle FLAT_CAP 15 | true | true | |
| ROUND CAP z=0 15 | true | true | |
| point inside circle FLAT_CAP 16 | true | true | |
| ROUND CAP z=0 16 | true | true | |
| point inside circle FLAT_CAP 17 | true | true | |
| ROUND CAP z=0 17 | true | true | |
| point inside circle FLAT_CAP 18 | true | true | |
| ROUND CAP z=0 18 | true | true | |
| point inside circle FLAT_CAP 19 | true | true | |
| ROUND CAP z=0 19 | true | true | |
| point inside circle FLAT_CAP 20 | true | true | |
| ROUND CAP z=0 20 | true | true | |
| point inside circle FLAT_CAP 21 | true | true | |
| ROUND CAP z=0 21 | true | true | |
| point inside circle FLAT_CAP 22 | true | true | |
| ROUND CAP z=0 22 | true | true | |
| point inside circle FLAT_CAP 23 | true | true | |
| ROUND CAP z=0 23 | true | true | |
| point inside circle FLAT_CAP 24 | true | true | |
| ROUND CAP z=0 24 | true | true | |
| point inside circle FLAT_CAP 25 | true | true | |
| ROUND CAP z=0 25 | true | true | |
| point inside circle FLAT_CAP 26 | true | true | |
| ROUND CAP z=0 26 | true | true | |
| point inside circle FLAT_CAP 27 | true | true | |
| ROUND CAP z=0 27 | true | true | |
| point inside circle FLAT_CAP 28 | true | true | |
| ROUND CAP z=0 28 | true | true | |
| point inside circle FLAT_CAP 29 | true | true | |
| ROUND CAP z=0 29 | true | true | |
| point inside circle FLAT_CAP 30 | true | true | |
| ROUND CAP z=0 30 | true | true | |
| point inside circle FLAT_CAP 31 | true | true | |
| ROUND CAP z=0 31 | true | true | |
| point inside circle FLAT_CAP 32 | true | true | |
| ROUND CAP z=0 32 | true | true | |
| point inside circle FLAT_CAP 33 | true | true | |
| ROUND CAP z=0 33 | true | true | |
| point inside circle FLAT_CAP 34 | true | true | |
| ROUND CAP z=0 34 | true | true | |
| point inside circle FLAT_CAP 35 | true | true | |
| ROUND CAP z=0 35 | true | true | |
| point inside circle FLAT_CAP 36 | true | true | |
| ROUND CAP z=0 36 | true | true | |
| point inside circle FLAT_CAP 37 | true | true | |
| ROUND CAP z=0 37 | true | true | |
| point inside circle FLAT_CAP 38 | true | true | |
| ROUND CAP z=0 38 | true | true | |
| point inside circle FLAT_CAP 39 | true | true | |
| ROUND CAP z=0 39 | true | true | |
| point inside circle FLAT_CAP 40 | true | true | |
| ROUND CAP z=0 40 | true | true | |
| point inside circle FLAT_CAP 41 | true | true | |
| ROUND CAP z=0 41 | true | true | |
| point inside circle FLAT_CAP 42 | true | true | |
| ROUND CAP z=0 42 | true | true | |
| point inside circle FLAT_CAP 43 | true | true | |
| ROUND CAP z=0 43 | true | true | |
| point inside circle FLAT_CAP 44 | true | true | |
| ROUND CAP z=0 44 | true | true | |
| point inside circle FLAT_CAP 45 | true | true | |
| ROUND CAP z=0 45 | true | true | |
| point inside circle FLAT_CAP 46 | true | true | |
| ROUND CAP z=0 46 | true | true | |
| point inside circle FLAT_CAP 47 | true | true | |
| ROUND CAP z=0 47 | true | true | |
| point inside circle FLAT_CAP 48 | true | true | |
| ROUND CAP z=0 48 | true | true | |
| point inside circle FLAT_CAP 49 | true | true | |
| ROUND CAP z=0 49 | true | true | |
| point inside circle FLAT_CAP 50 | true | true | |
| ROUND CAP z=0 50 | true | true | |
| point inside circle FLAT_CAP 51 | true | true | |
| ROUND CAP z=0 51 | true | true | |
| point inside circle FLAT_CAP 52 | true | true | |
| ROUND CAP z=0 52 | true | true | |
| point inside circle FLAT_CAP 53 | true | true | |
| ROUND CAP z=0 53 | true | true | |
| point inside circle FLAT_CAP 54 | true | true | |
| ROUND CAP z=0 54 | true | true | |
| point inside circle FLAT_CAP 55 | true | true | |
| ROUND CAP z=0 55 | true | true | |
| point inside circle FLAT_CAP 56 | true | true | |
| ROUND CAP z=0 56 | true | true | |
| point inside circle FLAT_CAP 57 | true | true | |
| ROUND CAP z=0 57 | true | true | |
| point inside circle FLAT_CAP 58 | true | true | |
| ROUND CAP z=0 58 | true | true | |
| point inside circle FLAT_CAP 59 | true | true | |
| ROUND CAP z=0 59 | true | true | |
| point inside circle FLAT_CAP 60 | true | true | |
| ROUND CAP z=0 60 | true | true | |
| point inside circle FLAT_CAP 61 | true | true | |
| ROUND CAP z=0 61 | true | true | |
| point inside circle FLAT_CAP 62 | true | true | |
| ROUND CAP z=0 62 | true | true | |
| point inside circle FLAT_CAP 63 | true | true | |
| ROUND CAP z=0 63 | true | true | |
| point inside circle FLAT_CAP 64 | true | true | |
| ROUND CAP z=0 64 | true | true | |
| point inside circle FLAT_CAP 65 | true | true | |
| ROUND CAP z=0 65 | true | true | |
| point inside circle FLAT_CAP 66 | true | true | |
| ROUND CAP z=0 66 | true | true | |
| NO_CAP numb points | 0 | 0 |
test_points_on_surface_cylinder_returns_points_on_surface
| Test | Expected | Actual | |
|---|---|---|---|
| point in radius 1 | true | true | |
| point in radius 2 | true | true | |
| point in radius 3 | true | true | |
| point in radius 4 | true | true | |
| point in radius 5 | true | true | |
| point in radius 6 | true | true | |
| point in radius 7 | true | true | |
| point in radius 8 | true | true | |
| point in radius 9 | true | true | |
| point in radius 10 | true | true | |
| point in radius 11 | true | true | |
| point in radius 12 | true | true | |
| point in radius 13 | true | true | |
| point in radius 14 | true | true | |
| point in radius 15 | true | true | |
| point in radius 16 | true | true | |
| point in radius 17 | true | true | |
| point in radius 18 | true | true | |
| point in radius 19 | true | true | |
| point in radius 20 | true | true | |
| point in radius 21 | true | true | |
| point in radius 22 | true | true | |
| point in radius 23 | true | true | |
| point in radius 24 | true | true | |
| point in radius 25 | true | true | |
| point in radius 26 | true | true | |
| point in radius 27 | true | true | |
| point in radius 28 | true | true | |
| point in radius 29 | true | true | |
| point in radius 30 | true | true | |
| point in radius 31 | true | true | |
| point in radius 32 | true | true | |
| point in radius 33 | true | true | |
| point in radius 34 | true | true | |
| point in radius 35 | true | true | |
| point in radius 36 | true | true | |
| point in radius 37 | true | true | |
| point in radius 38 | true | true | |
| point in radius 39 | true | true | |
| point in radius 40 | true | true | |
| point in radius 41 | true | true | |
| point in radius 42 | true | true | |
| point in radius 43 | true | true | |
| point in radius 44 | true | true | |
| point in radius 45 | true | true | |
| point in radius 46 | true | true | |
| point in radius 47 | true | true | |
| point in radius 48 | true | true | |
| point in radius 49 | true | true | |
| point in radius 50 | true | true | |
| point in radius 51 | true | true | |
| point in radius 52 | true | true | |
| point in radius 53 | true | true | |
| point in radius 54 | true | true | |
| point in radius 55 | true | true | |
| point in radius 56 | true | true | |
| point in radius 57 | true | true | |
| point in radius 58 | true | true | |
| point in radius 59 | true | true | |
| point in radius 60 | true | true | |
| point in radius 61 | true | true | |
| point in radius 62 | true | true | |
| point in radius 63 | true | true | |
| point in radius 64 | true | true | |
| point in radius 65 | true | true | |
| point in radius 66 | true | true | |
| point in radius 67 | true | true | |
| point in radius 68 | true | true | |
| point in radius 69 | true | true | |
| point in radius 70 | true | true | |
| point in radius 71 | true | true | |
| point in radius 72 | true | true | |
| point in radius 73 | true | true | |
| point in radius 74 | true | true | |
| point in radius 75 | true | true | |
| point in radius 76 | true | true | |
| point in radius 77 | true | true | |
| point in radius 78 | true | true | |
| point in radius 79 | true | true | |
| point in radius 80 | true | true | |
| point in radius 81 | true | true | |
| point in radius 82 | true | true | |
| point in radius 83 | true | true | |
| point in radius 84 | true | true | |
| point in radius 85 | true | true | |
| point in radius 86 | true | true | |
| point in radius 87 | true | true | |
| point in radius 88 | true | true | |
| point in radius 89 | true | true | |
| point in radius 90 | true | true | |
| point in radius 91 | true | true | |
| point in radius 92 | true | true | |
| point in radius 93 | true | true | |
| point in radius 94 | true | true | |
| point in radius 95 | true | true | |
| point in radius 96 | true | true | |
| point in radius 97 | true | true | |
| point in radius 98 | true | true | |
| point in radius 99 | true | true | |
| point in radius 100 | true | true | |
| point in radius 101 | true | true | |
| point in radius 102 | true | true | |
| point in radius 103 | true | true | |
| point in radius 104 | true | true | |
| point in radius 105 | true | true | |
| point in radius 106 | true | true | |
| point in radius 107 | true | true | |
| point in radius 108 | true | true | |
| point in radius 109 | true | true | |
| point in radius 110 | true | true |
test_point_is_inside_sphere_inside
| Test | Expected | Actual | |
|---|---|---|---|
| inside sphere | true | true | |
| outside sphere | false | false |
test_point_is_inside_cylinder
| Test | Expected | Actual | |
|---|---|---|---|
| inside | true | true | |
| outside | false | false |
test_sphere_intersects_with_sphere
| Test | Expected | Actual | |
|---|---|---|---|
| intersects | true | true | |
| not intersects | false | false |
test_sphere_intersects_with_cylinder
| Test | Expected | Actual | |
|---|---|---|---|
| intersects | true | true | |
| not intersects | false | false |
test_cylinder_intersects_with_cylinder
| Test | Expected | Actual | |
|---|---|---|---|
| intersects | true | true | |
| not intersects | false | false |
test_points_on_surface_sphere_returns_points_on_surface
| Test | Expected | Actual | |
|---|---|---|---|
| point 1 | true | true | |
| point 2 | true | true | |
| point 3 | true | true | |
| point 4 | true | true | |
| point 5 | true | true | |
| point 6 | true | true | |
| point 7 | true | true | |
| point 8 | true | true | |
| point 9 | true | true | |
| point 10 | true | true | |
| point 11 | true | true | |
| point 12 | true | true | |
| point 13 | true | true | |
| point 14 | true | true | |
| point 15 | true | true | |
| point 16 | true | true | |
| point 17 | true | true | |
| point 18 | true | true | |
| point 19 | true | true | |
| point 20 | true | true | |
| point 21 | true | true | |
| point 22 | true | true | |
| point 23 | true | true | |
| point 24 | true | true | |
| point 25 | true | true | |
| point 26 | true | true | |
| point 27 | true | true | |
| point 28 | true | true | |
| point 29 | true | true | |
| point 30 | true | true | |
| point 31 | true | true | |
| point 32 | true | true | |
| point 33 | true | true | |
| point 34 | true | true | |
| point 35 | true | true | |
| point 36 | true | true | |
| point 37 | true | true | |
| point 38 | true | true | |
| point 39 | true | true | |
| point 40 | true | true | |
| point 41 | true | true | |
| point 42 | true | true | |
| point 43 | true | true | |
| point 44 | true | true | |
| point 45 | true | true | |
| point 46 | true | true | |
| point 47 | true | true | |
| point 48 | true | true | |
| point 49 | true | true | |
| point 50 | true | true | |
| point 51 | true | true | |
| point 52 | true | true | |
| point 53 | true | true | |
| point 54 | true | true | |
| point 55 | true | true | |
| point 56 | true | true | |
| point 57 | true | true | |
| point 58 | true | true | |
| point 59 | true | true | |
| point 60 | true | true | |
| point 61 | true | true | |
| point 62 | true | true | |
| point 63 | true | true | |
| point 64 | true | true | |
| point 65 | true | true | |
| point 66 | true | true |
parsers
[edit]All 10 tests passed.
test_parse_sdf_with_one_mol_below_100_atoms_with_end_line
| Test | Expected | Actual | |
|---|---|---|---|
| len(atoms) | 41 | 41 | |
| len(bonds) | 43 | 43 |
test_parse_sdf_with_one_mol_below_100_atoms_without_end_line
| Test | Expected | Actual | |
|---|---|---|---|
| len(atoms) | 41 | 41 | |
| len(bonds) | 43 | 43 |
test_parse_sdf_with_one_mol_below_100_atoms_excluding_hs
| Test | Expected | Actual | |
|---|---|---|---|
| len(atoms) | 23 | 23 | |
| len(bonds) | 25 | 25 |
test_parse_sdf_with_one_mol_above_100_atoms_without_end_line
| Test | Expected | Actual | |
|---|---|---|---|
| len(atoms) | 100 | 100 | |
| len(bonds) | 109 | 109 |
test_parse_sdf_with_multiple_mols
| Test | Expected | Actual | |
|---|---|---|---|
| len(atoms) | 41 | 41 | |
| len(bonds) | 43 | 43 |