mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 06:55:02 +08:00
Rename CPUalgorithms to MemoryManagmentAlgorithms (#3071)
This commit is contained in:
@ -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() {
|
||||
@ -73,4 +73,4 @@ class BestFitCPUTest {
|
||||
);
|
||||
assertEquals(testMemAllocation, memAllocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
@ -73,4 +73,4 @@ class FirstFitCPUTest {
|
||||
);
|
||||
assertEquals(testMemAllocation, memAllocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
@ -73,4 +73,4 @@ class NextFitCPUTest {
|
||||
);
|
||||
assertEquals(testMemAllocation, memAllocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
@ -84,4 +84,4 @@ class WorstFitCPUTest {
|
||||
);
|
||||
assertEquals(testMemAllocation, memAllocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user