<commit_before>package fr.nantes.cta.test;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import fr.nantes.cta.Airway;
import fr.nantes.cta.CompassDirection;
import fr.nantes.cta.one.AirwayImpl;
import fr.nantes.cta.one.LatitudeImpl;
import fr.nantes.cta.one.LongitudeImpl;
import fr.nantes.cta.one.PositionImpl;
import fr.nantes.cta.one.TakenAirwayImpl;
import fr.nantes.cta.one.VORImpl;

public class TakenAirwayImplTest {
	
	private TakenAirwayImpl instance;
    private Airway air1, air2;
    private int alt1, alt2;
    private CompassDirection cd1, cd2;

	@Before
	public void setUp() throws Exception {
		VORImpl v = new VORImpl("test1", new PositionImpl(new LatitudeImpl(45, 10, 10, CompassDirection.NORTH), new LongitudeImpl(45, 10, 10, CompassDirection.EAST)));
		VORImpl o = new VORImpl("test2", new PositionImpl(new LatitudeImpl(40, 10, 10, CompassDirection.NORTH), new LongitudeImpl(40, 10, 10, CompassDirection.EAST)));
		VORImpl r = new VORImpl(null, new PositionImpl(new LatitudeImpl(40, 10, 10, CompassDirection.NORTH), new LongitudeImpl(40, 10, 10, CompassDirection.EAST)));
		
		air1 = new AirwayImpl(v,o);
		//air2 = new Air
		
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testTakenAirwayImpl() {
		fail("Not yet implemented");
	}

	@Test
	public void testDistance() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAirway() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAltitude() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetSense() {
		fail("Not yet implemented");
	}

}<commit_msg>add takenairwayimpl<commit_after>package fr.nantes.cta.test;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import fr.nantes.cta.Airway;
import fr.nantes.cta.CompassDirection;
import fr.nantes.cta.one.AirwayImpl;
import fr.nantes.cta.one.LatitudeImpl;
import fr.nantes.cta.one.LongitudeImpl;
import fr.nantes.cta.one.PositionImpl;
import fr.nantes.cta.one.TakenAirwayImpl;
import fr.nantes.cta.one.VORImpl;

public class TakenAirwayImplTest {
	
	private TakenAirwayImpl instance;
    private Airway air1, air2;
    private int alt1, alt2;
    private CompassDirection cd1, cd2;

	@Before
	public void setUp() throws Exception {
		VORImpl v = new VORImpl("test1", new PositionImpl(new LatitudeImpl(45, 10, 10, CompassDirection.NORTH), new LongitudeImpl(45, 10, 10, CompassDirection.EAST)));
		VORImpl o = new VORImpl("test2", new PositionImpl(new LatitudeImpl(40, 10, 10, CompassDirection.NORTH), new LongitudeImpl(40, 10, 10, CompassDirection.EAST)));
		VORImpl r = new VORImpl(null, new PositionImpl(new LatitudeImpl(40, 10, 10, CompassDirection.NORTH), new LongitudeImpl(40, 10, 10, CompassDirection.EAST)));
		
		air1 = new AirwayImpl(v,o);
		
		//air2 = new Air
		
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testTakenAirwayImpl() {
		TakenAirwayImpl tai1 = new TakenAirwayImpl(air1, 1000, CompassDirection.NORTH);
		assertNotNull(tai1);
	}

	@Test
	public void testDistance() {
		TakenAirwayImpl tai1 = new TakenAirwayImpl(air1, 1000, CompassDirection.NORTH);
		assertEquals(tai1.distance(), air1.getDistance(),0); 
	}

	@Test
	public void testGetAirway() {
		TakenAirwayImpl tai1 = new TakenAirwayImpl(air1, 1000, CompassDirection.NORTH);
		assertEquals(tai1.getAirway(), air1);
	}

	@Test
	public void testGetAltitude() {
		TakenAirwayImpl tai1 = new TakenAirwayImpl(air1, 1000, CompassDirection.NORTH);
		assertEquals(tai1.getAltitude(), 1000, 0);
	}

	@Test
	public void testGetSense() {
		TakenAirwayImpl tai1 = new TakenAirwayImpl(air1, 1000, CompassDirection.NORTH);
		assertEquals(tai1.getSense(), CompassDirection.NORTH);
	}

}
{'fraction_non_alphanumeric': 0.1179108414666315, 'fraction_numerical': 0.035610656818781325, 'mean_word_length': 5.009508716323296, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6125813', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1340, 'n_words': 312}