package de.arxsilex.maptools.converter.core

import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class ExportSelectionTest {
    @Test
    fun requiresAtLeastOneOutput() {
        assertFalse(ExportSelection(false, false, false).hasOutput)
        assertTrue(ExportSelection(mapsforgeMap = true).hasOutput)
        assertTrue(
            ExportSelection(
                mapsforgeMap = false,
                mapsforgePoi = false,
                elevationData = true,
            ).hasOutput,
        )
    }

    @Test
    fun defaultsToCurrentPoiSchema() {
        assertTrue(ExportSelection().mapsforgePoi)
        assertEquals(PoiSchemaVersion.V4, ExportSelection().poiSchemaVersion)
    }

    @Test
    fun defaultsToCurrentMapFormat() {
        assertEquals(MapFormatVersion.V5, ExportSelection().mapFormatVersion)
    }
}
