// File: Naomi1745698[P]BigPrac/test.cpp
// Function: test::planetTesting()
void test::planetTesting(){
	PASS = 0;											
	std::cout << "resourceType is: " << planet1->getName() << std::endl; 
	if(planet1->getName() == "K9"){
		PASS++;
	}else{
		std::cout << "ERROR getName" << std::endl;
		PASS--;
	};
	std::cout << " Resource size is: " << planet1->getResources() << std::endl;
	if(planet1->getResources() == startResources){
		PASS++;
	}else{
		std::cout << "ERROR getResources" << std::endl;
		PASS--;
	};
	std::cout << "add 50 to fuel" << std::endl; 
	planet1->setResources(addResources); // adds addResources to the original set of resources
	std::cout << " Change resource size is: " << planet1->getResources() << std::endl;
	if(planet1->getResources() == 70){
		PASS++;
	}else{
		std::cout << "ERROR setResources" << std::endl;
		PASS--;
	};
	if(PASS == 3){
		std::cout << "<---------------------PASS---------------->" << std::endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, 0x74(%rax)
movq 0x4af3(%rip), %rdi      # 0xdfd8
leaq 0x1569(%rip), %rsi      # 0xaa55
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq 0x30(%rax), %rsi
leaq -0x28(%rbp), %rdi
movq %rdi, -0x68(%rbp)
callq 0x4144
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x3180
movq %rax, -0x60(%rbp)
jmp 0x9520
movq -0x60(%rbp), %rdi
movq 0x4a9d(%rip), %rsi      # 0xdfc8
callq 0x31f0
jmp 0x9532
leaq -0x28(%rbp), %rdi
callq 0x30f0
movq -0x78(%rbp), %rax
movq 0x30(%rax), %rsi
leaq -0x58(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x4144
movq -0x88(%rbp), %rdi
leaq 0x12bf(%rip), %rsi      # 0xa820
callq 0x9b60
movb %al, -0x79(%rbp)
jmp 0x956b
leaq -0x58(%rbp), %rdi
callq 0x30f0
movb -0x79(%rbp), %al
testb $0x1, %al
jne 0x957d
jmp 0x95c0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x95ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x30f0
jmp 0x978d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x30f0
jmp 0x978d
movq 0x4a11(%rip), %rdi      # 0xdfd8
leaq 0x13e7(%rip), %rsi      # 0xa9b5
callq 0x31c0
movq %rax, %rdi
movq 0x49eb(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x49e2(%rip), %rdi      # 0xdfd8
leaq 0x146a(%rip), %rsi      # 0xaa67
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq 0x30(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x90(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x4996(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x30(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x78(%rbp), %rcx
cmpl 0x60(%rcx), %eax
jne 0x965d
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x968c
movq 0x4974(%rip), %rdi      # 0xdfd8
leaq 0x1368(%rip), %rsi      # 0xa9d3
callq 0x31c0
movq %rax, %rdi
movq 0x494e(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq 0x4945(%rip), %rdi      # 0xdfd8
leaq 0x13e1(%rip), %rsi      # 0xaa7b
callq 0x31c0
movq %rax, %rdi
movq 0x491f(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x30(%rax), %rdi
movl 0x6c(%rax), %esi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x4912(%rip), %rdi      # 0xdfd8
leaq 0x13bd(%rip), %rsi      # 0xaa8a
callq 0x31c0
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq 0x30(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x98(%rbp), %rdi
movl %eax, %esi
callq 0x3320
movq %rax, %rdi
movq 0x48c6(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movq 0x30(%rax), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x46, %eax
jne 0x9729
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x74(%rax)
jmp 0x9758
movq 0x48a8(%rip), %rdi      # 0xdfd8
leaq 0x136e(%rip), %rsi      # 0xaaa5
callq 0x31c0
movq %rax, %rdi
movq 0x4882(%rip), %rsi      # 0xdfc8
callq 0x31f0
movq -0x78(%rbp), %rax
movl 0x74(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x74(%rax)
movq -0x78(%rbp), %rax
cmpl $0x3, 0x74(%rax)
jne 0x9784
movq 0x486f(%rip), %rdi      # 0xdfd8
leaq 0x12b9(%rip), %rsi      # 0xaa29
callq 0x31c0
movq %rax, %rdi
movq 0x4849(%rip), %rsi      # 0xdfc8
callq 0x31f0
addq $0xa0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x3330
nopw %cs:(%rax,%rax)