Unit test for TupleDesc.numFields()
()
| 140 | * Unit test for TupleDesc.numFields() |
| 141 | */ |
| 142 | @Test public void numFields() { |
| 143 | int[] lengths = new int[] { 1, 2, 1000 }; |
| 144 | |
| 145 | for (int len : lengths) { |
| 146 | TupleDesc td = Utility.getTupleDesc(len); |
| 147 | assertEquals(len, td.numFields()); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | @Test public void testEquals() { |
| 152 | TupleDesc singleInt = new TupleDesc(new Type[]{Type.INT_TYPE}); |
no test coverage detected