GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Testing_code_mp_ped/TestPointQueue.java at main · Xutete/Testing_code_mp_ped Expand file tree/ Copy pathTestPointQueue.javaMore file actions 65 lines (57 loc) · 1.47 KB / Copy pathTestPointQueue.javaFile metadata and controls65 lines (57 loc) · 1.47 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 package ped; import java.util.ArrayList; import java.util.List; public class TestPointQueue { Node n1 = new Node(1, 0, 0); Node n2 = new Node(2, 1, 0); Node n3 = new Node(3, 2, -1); Node n4 = new Node(4, 2, 1); Node n5 = new Node(5, 3, 0); Link l1 = new PointQueue(12, n1, n2, 120, 2, 800, 1); Link l2 = new PointQueue(23, n2, n3, 120, 2, 800, 1); ArrayList<Node> path1 = new ArrayList<Node>() { { add(n1); add(n2); add(n3); } }; ArrayList<Node> path2 = new ArrayList<Node>() { { add(n1); add(n2); add(n4); } }; ArrayList<Node> path3 = new ArrayList<Node>() { { add(n5); add(n2); add(n4); } }; ArrayList<Node> path4 = new ArrayList<Node>() { { add(n1); add(n5); add(n4); } }; // Vehicle v1 = new Vehicle(path1); // Vehicle v2 = new Vehicle(path2); // Vehicle v3 = new Vehicle(path3); public TestPointQueue() { // TODO: make relevant tests // l1.addVehicle(v1); // l1.addVehicle(v2); } // void testGetVehicles() { // System.out.println("Testing PointQueue.getVehs()"); // List<Vehicle> vehs = new ArrayList<>(); //// vehs.add(v1); //// vehs.add(v2); // // assert vehs.containsAll(l1.getVehs()); // assert l1.getVehs().containsAll(vehs); // } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |