Christian Sheridan 6 лет назад
Родитель
Сommit
672ac44fda

+ 1
- 1
src/main/java/rocks/zipcode/calcskin/CalcSkin.java Просмотреть файл

291
     }
291
     }
292
 
292
 
293
     private void makeEqualsButton(Button button) {
293
     private void makeEqualsButton(Button button) {
294
-        button.setStyle("-fx-base: ghostwhite;");
294
+        button.setStyle("-fx-base: white;");
295
         button.setOnAction(new EventHandler<ActionEvent>() {
295
         button.setOnAction(new EventHandler<ActionEvent>() {
296
             @Override
296
             @Override
297
             public void handle(ActionEvent actionEvent) {
297
             public void handle(ActionEvent actionEvent) {

+ 29
- 0
src/test/java/rocks/zipcode/calcskin/WhiteBoardTest.java Просмотреть файл

1
+package rocks.zipcode.calcskin;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class WhiteBoardTest {
7
+
8
+    @Test
9
+    public void sortTest(){
10
+        int[] input = new int[]{2, 5, -55, 8, -72, -1, 53};
11
+        String arrayToString = "";
12
+        for (int j = 0; j<input.length; j++)
13
+        for (int i = 0; i < input.length-1; i++) {
14
+            int temp = input[i++];
15
+            if(input[i]>input[i++]){
16
+                input[i++] = input[i];
17
+                input[i] = temp;
18
+                arrayToString += input[i] + " ";
19
+                System.out.println(input[i]);
20
+            }
21
+
22
+
23
+        }
24
+
25
+        String actual = "-72 -55 -1 2 5 8 53";
26
+
27
+        Assert.assertEquals(arrayToString, actual);
28
+    }
29
+}