package ru.r2cloud.jradio.eseo.funcube;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class EseoFuncubeBeaconTest {

	@Test
	public void testParse() throws Exception {
		byte[] data = new byte[] { (byte) 0b11010101, (byte) 0b00000100 };
		EseoFuncubeBeacon beacon = new EseoFuncubeBeacon();
		beacon.readExternal(data);
		assertEquals(0b11100000, beacon.getSatId());
		assertEquals(0b10101000, beacon.getFrameType());
	}
}

@@ -222,11 +222,25 @@
 yte%5B
+256%5D;%0A%09%09data%5B0
 %5D 
-%7B
+=
  (by
@@ -253,17 +253,29 @@
 11010101
-,
+;%0A%09%09data%5B1%5D =
  (byte) 
@@ -288,10 +288,8 @@
 0100
- %7D
 ;%0A%09%09

fix test