Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
16 lines
767 B
TypeScript
16 lines
767 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { sphereTessellation } from "@/lib/sphereTessellation";
|
|
|
|
describe("sphere tessellation", () => {
|
|
it("uses the visible sphere Steps value for both rendering and boolean operands", () => {
|
|
expect(sphereTessellation(6)).toEqual({ widthSegments: 12, heightSegments: 6 });
|
|
expect(sphereTessellation(24)).toEqual({ widthSegments: 48, heightSegments: 24 });
|
|
expect(sphereTessellation(64)).toEqual({ widthSegments: 128, heightSegments: 64 });
|
|
});
|
|
|
|
it("uses the catalog default and normalizes fractional input", () => {
|
|
expect(sphereTessellation()).toEqual({ widthSegments: 48, heightSegments: 24 });
|
|
expect(sphereTessellation(27.6)).toEqual({ widthSegments: 56, heightSegments: 28 });
|
|
});
|
|
});
|