Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refactor CPUalgorithms --> MemoryManagementAlgorithms
  • Loading branch information
Rytnix committed May 31, 2022
commit 6a792ab006fef8f5a74ff53e192c70dd4e0d49a2
4 changes: 2 additions & 2 deletions src/test/java/com/thealgorithms/others/BestFitCPUTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BestFitCPUTest {
int [] sizeOfProcesses;
ArrayList<Integer> memAllocation = new ArrayList<>();
ArrayList<Integer> testMemAllocation ;
CPUalgorithms bestFit = new BestFitCPU();
MemoryManagementAlgorithms bestFit = new BestFitCPU();

@Test
void testFitForUseOfOneBlock() {
Expand Down Expand Up @@ -73,4 +73,4 @@ void testFitForMoreBlocksNoFit() {
);
assertEquals(testMemAllocation, memAllocation);
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/thealgorithms/others/FirstFitCPUTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FirstFitCPUTest {
int [] sizeOfProcesses;
ArrayList<Integer> memAllocation = new ArrayList<>();
ArrayList<Integer> testMemAllocation ;
CPUalgorithms firstFit = new FirstFitCPU();
MemoryManagementAlgorithms firstFit = new FirstFitCPU();

@Test
void testFitForUseOfOneBlock() {
Expand Down Expand Up @@ -73,4 +73,4 @@ void testFitForMoreBlocksNoFit() {
);
assertEquals(testMemAllocation, memAllocation);
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/thealgorithms/others/NextFitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class NextFitCPUTest {
int [] sizeOfProcesses;
ArrayList<Integer> memAllocation = new ArrayList<>();
ArrayList<Integer> testMemAllocation ;
CPUalgorithms nextFit = new NextFit();
MemoryManagementAlgorithms nextFit = new NextFit();

@Test
void testFitForUseOfOneBlock() {
Expand Down Expand Up @@ -73,4 +73,4 @@ void testFitForMoreBlocksNoFit() {
);
assertEquals(testMemAllocation, memAllocation);
}
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/thealgorithms/others/WorstFitCPUTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WorstFitCPUTest {
int [] sizeOfProcesses;
ArrayList<Integer> memAllocation = new ArrayList<>();
ArrayList<Integer> testMemAllocation ;
CPUalgorithms worstFit = new WorstFitCPU();
MemoryManagementAlgorithms worstFit = new WorstFitCPU();

@Test
void testFitForUseOfOneBlock() {
Expand Down Expand Up @@ -84,4 +84,4 @@ void testFitBadCase() {
);
assertEquals(testMemAllocation, memAllocation);
}
}
}