package regras

import "testing"

func TestMontarCaracteristicasZapXML(t *testing.T) {
	got := MontarCaracteristicasZapXML([]string{"Piscina", "AceitaPermuta"})
	if got != "<Piscina>1</Piscina><AceitaPermuta>1</AceitaPermuta>" {
		t.Fatalf("got %q", got)
	}
}

func TestHacksMaster90821604(t *testing.T) {
	o := AplicarHacksMasterZap(90821604, "REF123", "", "", "", "")
	if o.IPTU != "55555" || o.ValorCondominio != "55555" {
		t.Fatalf("iptu/cond esperado 55555, got %q %q", o.IPTU, o.ValorCondominio)
	}
	if o.Video != "https://youtu.be/YRGXmIrznKo" {
		t.Fatalf("video caixa esperado, got %q", o.Video)
	}
}

func TestBanheiroZapZero(t *testing.T) {
	if BanheiroZap("0") != "1" {
		t.Fatal("banheiro 0 deve virar 1 no zap")
	}
}
