package com.gxwebsoft.house.util;

/**
 * SortSceneUtil手动测试类
 * 用于验证URL解码功能
 * 
 * @author 科技小王子
 * @since 2025-08-04
 */
public class SortSceneUtilManualTest {
    
    public static void main(String[] args) {
        // 测试URL编码的参数
        String urlEncoded = "%E4%BB%B7%E6%A0%BC(%E4%BD%8E-%E9%AB%98)";
        System.out.println("原始URL编码参数: " + urlEncoded);
        
        String result = SortSceneUtil.normalizeSortScene(urlEncoded);
        System.out.println("标准化后的参数: " + result);
        System.out.println("是否为价格升序: " + SortSceneUtil.isPriceAsc(urlEncoded));
        
        // 测试其他格式
        String[] testCases = {
            "价格(低-高)",
            "价格(高-低)",
            "%E4%BB%B7%E6%A0%BC(%E9%AB%98-%E4%BD%8E)",
            "最新发布",
            "综合排序",
            "面积(小-大)",
            "面积(大-小)"
        };
        
        System.out.println("\n=== 测试各种排序场景 ===");
        for (String testCase : testCases) {
            String normalized = SortSceneUtil.normalizeSortScene(testCase);
            System.out.println("输入: " + testCase + " -> 输出: " + normalized);
        }
    }
}
